Feb 10, 2010

Blank items in DropDownList controls

After playing with JQuery to dynamically insert a blank option in my DropDownList but not finding a way to maintain the logic through a postback, I came across this wonderful post from Tomas Ekeli:

http://personalinertia.blogspot.com/2007/08/dropdownlist-with-blank-item-on-top.html

Works perfectly! Thrown in a RequiredFieldValidator with an InitialValue property and you're set.

No comments:

Post a Comment