Now don’t get me wrong. .NET is great and so is ASP.NET, but there are one or two things that irritate me. I currently use 2003, and maybe this is fixed in the next version, but it’s a real pain.
Attributes on ListItems don’t render.
<select onchange="blah(this)"><option value=5 OtherValue="Hello">Display Text</option>
…and then the blah() routine could pick up the OtherValue field and stick it somewhere else. ASP.NET seems to support this through the attributes collection on each element:
ListItem li = new ListItem("Display Text", "Value")li["OtherValue"] = "Hello";
…but the OtherValue attribute doesn’t appear on your web page. The only workarounds I’ve found are far to hideous to publish on a public web page. Has anybody got these attributes to work?