M
Murali Inguva
Hi,
I tried to add attributes to List Item. The I am trying to add that list
item to dropDown
I dont know why the values are not coming. My code goes some thing like
this.
lst = new System.Web.UI.WebControls.ListItem();
lst.Attributes.Add("defaultAmount", item.defaultAmount.ToString());
lst.Attributes.AddAttributes();
lst.Text= item.itemDescription + " -- " + item.defaultAmount.ToString("c") ;
lst.Value=item.itemId.ToString();
cboItems.Items.Add(lst);
Please help me
I tried to add attributes to List Item. The I am trying to add that list
item to dropDown
I dont know why the values are not coming. My code goes some thing like
this.
lst = new System.Web.UI.WebControls.ListItem();
lst.Attributes.Add("defaultAmount", item.defaultAmount.ToString());
lst.Attributes.AddAttributes();
lst.Text= item.itemDescription + " -- " + item.defaultAmount.ToString("c") ;
lst.Value=item.itemId.ToString();
cboItems.Items.Add(lst);
Please help me