jquery - Input type <select> with search textbox in ASP.NET and C# -


i want implement kind of <select> in asp.net.

what want have search text box here when click <select> in link put login details.

i have code working in php jquery , css. don't know or how can implement in asp.net. tried copying codes didn't work dynamic contents.

update:

here's html code without script whatsoever:

<select name="blogpost-category" id="blogpost-category" class="required chzn-done">     <option></option>    <option>lorem ipsum</option>    <option>consetetur sadipscing</option>     <option>eirmod tempor</option> </select> 

please take note name, id , class in asp.net can declared or include in code behind , id's system generated. i'm trying when set value of id in c# this:

<asp:dropdownlist id="ddlcategory" runat="server" /> 

or

<asp:dropdownlist id="blogpost-category" runat="server" /> 

and binding data using c# script:

    dictionary<string,string> dict = new dictionary<string,string>();     datatable dt = filldata(sql_select);      dict.add(string.empty, string.empty);     dict.add(def.addnew, def.addnew);      foreach (datarow dr in dt.rows)     {         dict.add(dr.itemarray[def.id].tostring(), dr.itemarray[def.name].tostring());     }//foreach      ddlcategory.datasource = dict;     ddlcategory.datavaluefield = def.key;     ddlcategory.datatextfield = def.value;     ddlcategory.databind(); 

the result id both be:

ctl00_contentplaceholder1_ddlcategory , ctl00_contentplaceholder1_blogpost-category repectively.

thank in advance.

yes, can make asp.net also. firstly need things "web user controls" in asp.net , continue that.. :)

happy coding.. :)


Comments