Software development stuff.

2007-12-17

Using both MaskedEditExtender and calendarextender

It's not easy to use the Ajax Toolkit controls like the example in here for editing a date. Well, at least not easy if you want it to be multicultural. I used the following: //Set the culture settings CultureInfo oCulture = CultureInfo.CurrentCulture; CalendarMaskExtender1.CultureName = oCulture.Name; CalendarExtender1.Format = oCulture.DateTimeFormat.ShortDatePattern; //CalendarMaskExtender expects something like "99/99/9999" CalendarMaskExtender1.Mask = CalendarExtender1.Format.Replace( oCulture.DateTimeFormat.DateSeparator, "/").Replace( "d", "9").Replace( "M", "9").Replace( "y", "9"); And don't forge tot set the <asp:ScriptManager EnableScriptGlobalization="true">

Argh, how do you set the format on this blogger.....aahh, just view source of this page if you need to check the code..

Etiquetas:

2007-09-11

TabContainer: Extra white space below tab title when removing the DOCTYPE

This forum thread helped me solve a rendering problem with the TabContainer when in a page without DOCTYPE.
TabContainer: Extra white space below tab text - ASP.NET Forums

Etiquetas: ,

2007-07-16

RadioButtonList with and AJAX UpdatePanel and AsyncPostBackTrigger

When using the RadioButtonList with an AsyncPostBackTrigger I just had a server event on the first change. I was going slightly mad until I found this:
Mike Ormond's Blog : The Curious Case of the RadioButtonList not Triggering

Etiquetas:

MS Ajax AutoComplete using a page method

Had to google to find this one. AJAX documentation doesn't tell all.
You nees to set the method as static if you want to use a page method instead of a web method.
MS Ajax AutoComplete Extender using a Page Method « All Wrong

Etiquetas: