ListItem & Attribute problem ?
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
Why i can't set a attribute for a particular ListItem of RadioButtonList and get render correctly ? For example, RadioButtonList rbl = new RadioButtonList (); ListItem li = new ListItem ("aa"); li.Attributes.Add ("onclick", "abc ()"); rbl.Items.Add (li); The onclick attribute will not be rendered on the listitem ? why ? Please help ... thank
-
Why i can't set a attribute for a particular ListItem of RadioButtonList and get render correctly ? For example, RadioButtonList rbl = new RadioButtonList (); ListItem li = new ListItem ("aa"); li.Attributes.Add ("onclick", "abc ()"); rbl.Items.Add (li); The onclick attribute will not be rendered on the listitem ? why ? Please help ... thank