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).
Friday, 11 May 2007
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"
Wednesday, 28 March 2007
GridView : Getting updated cell values
When using a gridview the RowUpdating event arguments has a property (e.)NewValues.
There is a problem if the GridView datasource is not set to s DataSourceObject, these NewValues remain blank.
To populate use the following code:
There is a problem if the GridView datasource is not set to s DataSourceObject, these NewValues remain blank.
To populate use the following code:
GridView gv = (GridView)sender;
for (int i = 0; i < gridView.Columns.Count; i++)
{
DataControlFieldCell cell = gv.Rows[e.RowIndex].Cells[i] as DataControlFieldCell;
gv.Columns[i].ExtractValuesFromCell(e.NewValues, cell, DataControlRowState.Edit, true);
}
Subscribe to:
Posts (Atom)