When lazy loading is true the returned type from a db call will be a proxy, so if you call GetType() you will get the proxy type not the underlying class.
To overcome this use NHibernateUtil.GetClass(object-instance).
Monday, 21 May 2007
Friday, 11 May 2007
C# Date encoding / parse
DateTime.Parse requires a Culture to be set to use a specific format.
If the format is known then a better alternative is to use new DateTime(year,month,day).
If the format is known then a better alternative is to use new DateTime(year,month,day).
C# Windows dock overlap
Where panels etc are 'docked' in a windows form they can sometimes overlap (eg Left dock overlaps the Fill dock panel). To overcome this the overlapping panel must be 'Sent to Back'
Monday, 23 April 2007
Windows 2003 POP3 CatchAll
To facilitate a catch-all address on Windows 2003 you need to run the scripts downloaded from here:
http://isorecorder.alexfeinman.com/catchall.htm
These have been downloaded to Sever1\\Install\Microsoft\Windows2003\MailCatchAll
http://isorecorder.alexfeinman.com/catchall.htm
These have been downloaded to Sever1\\Install\Microsoft\Windows2003\MailCatchAll
Wednesday, 11 April 2007
PageRequestManagerParserErrorException exporting grid
Had code to export grid but was receiving the error PageRequestManagerParserErrorException.
This appears to be due to the Export button being on a Ajax UpdatePanel and the ScriptManager having PartialUpdates set to false.
There doesn't currently appear to be any work around to fix this other than the button being removed from the UpdatePanel.
This appears to be due to the Export button being on a Ajax UpdatePanel and the ScriptManager having PartialUpdates set to false.
There doesn't currently appear to be any work around to fix this other than the button being removed from the UpdatePanel.
Thursday, 5 April 2007
NHibernate:Unknown entity class:
Error "Unknown entity class: " occurs when either no mapping file exists for specifed or the mapping file is not flagged as embedded resource.
Tuesday, 3 April 2007
AJax Calendar extender date format
The date format of the Calendar extender seesm to be mm/dd/yyyy.
To change it to culture specific:
To change it to culture specific:
- Set Page Culture="auto"
- Set Page UICulture="auto"
- Set ScriptManager EnableScriptGlobalization="true"
- Set ScriptManager EnableScriptLocalization="true"
Subscribe to:
Posts (Atom)