1
Answer

dynamically add item to dropdown list in asp.net

M CH

M CH

8y
1.1k
1
Friends When I add any item in dropdown list dynamically on clicking button. When I run my app again those items who I add that's not exists. I want my items permanently.
 
protected void btn_click(object sender, EventArgs e)
{
ddlist.Items.Add(new ListItem(textbox1, textbox1));
}
 
Answers (1)