3
Answers

Add controls dinamically on a Ajax UpdatePanel

Mihai si atat

Mihai si atat

15y
2.6k
1

Hello,

i have an Ajax UpdatePanel that gets populated dinamically with a button and a listBox. I choose an item from the ListBox,then i press the button.

In code behind,on the server side,i am checking this:

if (ScriptManager1.IsInAsyncPostBack)

{

string fromWhere = Request[ScriptManager1.ID];

if (fromWhere.Contains("ButtonID"))

{

      //here i need to know the listbox item that was selected.How do i do that?

}

}

Thanks

 

 

Answers (3)