3
Reply

Add controls dinamically on a Ajax UpdatePanel

Mihai si atat

Mihai si atat

Feb 28 2009 10:18 AM
2.6k

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)