Geeks With Blogs
Chris Breisch   .NET Data Practices
Search this Blog!

Why doesn't ASP.NET 2.0 support the <optgroup> element?  I don't know.  But here's the solution for you, if you've been wishing it did.

From the introduction:

ASP.NET 2.0, for all its bells and whistles, lacks the odd bit of functionality for reasons completely unknown. One such notable omission is that of OptionGroup (<optgroup>) support in the DropDownList control. For those unfamiliar with the <optgroup> element, it is part of the XHTML standard and has the effect of categorising items in a <select> as the following image shows.

Posted on Wednesday, September 13, 2006 11:31 AM .NET Development | Back to top


Comments on this post: ASP.NET DropDownList with OptionGroup Support

# re: ASP.NET DropDownList with OptionGroup Support
Requesting Gravatar...
This is ridicolus for asp.net
Left by Web Tasarım on Feb 13, 2008 5:50 PM

# re: ASP.NET DropDownList with OptionGroup Support
Requesting Gravatar...
The example image is missing (http://www.codeproject.com/useritems/DropDownListOptionGroup/dropdownlist_optiongroup.gif)
Left by Roel on Jul 14, 2008 3:54 AM

# re: ASP.NET DropDownList with OptionGroup Support
Requesting Gravatar...
Please give me Optgroup dropdownlist with dynamic optgroupnames
Left by fanesh on Nov 29, 2011 1:44 AM

Your comment:
 (will show your gravatar)


Copyright © Chris J. Breisch | Powered by: GeeksWithBlogs.net