<select title="Select one" id="selectBooks" multiple="multiple"> <option value="1">test</option> //added in client side. <select>
System.Web.UI.HtmlControls.HtmlSelect books= (System.Web.UI.HtmlControls.HtmlSelect)form1.FindControl("selectBooks"); foreach (ListItem item in books.Items) { string test = item.Text.ToString(); }
FindControl
runat="server"
HTML
ClientScript.RegisterStartupScript(GetType(),"id","callMyJSFunction()",true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)