sir,
i have a dynamic drop downlist. I have to get the data from the database. but i am not able to do it .the code which i have used for dynamic dropdownlist is
i have a dynamic drop downlist. I have to get the data from the database. but i am not able to do it .the code which i have used for dynamic dropdownlist is
Code:
for(int i = 0; i <= count; i++)
{
DropDownList t = new DropDownList();
t.ID = "C" + i;
Literal l1 = new Literal();
l1.Text = "<br/>";
PlaceHolder1.Controls.Add(t);
PlaceHolder1.Controls.Add(l1);
}
Comment