Add controls dinamically on a Ajax UpdatePanel

Feb 28 2009 10:18 AM

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)