C
cindy liu
Hi,
On my ASP.net page, I have a web control list box. In Page_Load method, I
created a ListItem and added it to the list box. Here is the code:
oItem=new ListItem(strAsset);
oItem.Attributes.Add("Area","my area");
lstAsset.Items.Add(oItem);
After clicking Add button on my page, I tried to get selected list item and
retrieve my attribute "Area". I noticed that the list item attribute count is
0. Where is my attribute? Any idea?
Thanks in advance!!!
Cindy
On my ASP.net page, I have a web control list box. In Page_Load method, I
created a ListItem and added it to the list box. Here is the code:
oItem=new ListItem(strAsset);
oItem.Attributes.Add("Area","my area");
lstAsset.Items.Add(oItem);
After clicking Add button on my page, I tried to get selected list item and
retrieve my attribute "Area". I noticed that the list item attribute count is
0. Where is my attribute? Any idea?
Thanks in advance!!!
Cindy