P
PV
I am trying to add some attributes to a DropDownList's list items.
For Example
dropdownList1.Items[0].Attributes.Add("myExpandoProperty",
"myExpandoValue");
I would expect then the rendered html to look like:
<select name="dropdownList1" id="dropdownList1">
<option value="test" myExpandoProperty="myExpandoValue">test</option>
</select>
However, the expando property does not show up. What's the point of having
an attributes collection if it does not get rendered in the HTML!?
Any idea how to do this?
For Example
dropdownList1.Items[0].Attributes.Add("myExpandoProperty",
"myExpandoValue");
I would expect then the rendered html to look like:
<select name="dropdownList1" id="dropdownList1">
<option value="test" myExpandoProperty="myExpandoValue">test</option>
</select>
However, the expando property does not show up. What's the point of having
an attributes collection if it does not get rendered in the HTML!?
Any idea how to do this?