Tuesday, December 13, 2005
Monday, December 12, 2005
close button for a popup window in ASP.Net (c#)
Found some nice code to create a close button for a popup window in ASP.Net (c#)
///
/// Create javascript to close the current window
///
/// Button to click to close the window
public static void CreateCloseButton(Button btn)
{
btn.Attributes.Add("onclick", "return window.close();");
}
///
/// Create javascript to close the current window
///
/// Button to click to close the window
public static void CreateCloseButton(Button btn)
{
btn.Attributes.Add("onclick", "return window.close();");
}
Tuesday, December 06, 2005
NHibernate Nullables
This is a real annoyance. I thought the NHibernate stuff was going great, then I tried to save an empty string to our oracle database.... more mad errors
Still, the solution is not too tricky, just set the type arrribute in the mapping file:
and include the Nullables DLL in the project, and we're up and running again. A real annoyance.
see http://wiki.nhibernate.org/display/NHC/Nullables and http://nhibernate.sourceforge.net/nh-docs/html/Nullables.html
Still, the solution is not too tricky, just set the type arrribute in the mapping file:
and include the Nullables DLL in the project, and we're up and running again. A real annoyance.
see http://wiki.nhibernate.org/display/NHC/Nullables and http://nhibernate.sourceforge.net/nh-docs/html/Nullables.html
Subscribe to:
Posts (Atom)