check here... |
| Vasanthakumar D replied to abc V at 10-May-08 01:16 |
Hi,
check this...
1. fill the dataset using recods from DB...
2. try this code...
for(int count = 0;count < ds.Tables[0].Rows.Count;count++)
{
ListItem x = new ListItem();
x.Text = ds.Tables[0].Rows[count]["TextFiled"].ToString();
x.Vaklue= ds.Tables[0].Rows[count]["valueField"].ToString();
x.Attributes.Add("title", ds.Tables[0].Rows[count]["tooltipfield"].ToString());
dropdown1.Items.Add(x);
} |
|