c# - Can I use jquery Drop down list instead of ASP.NET -


at moment using asp.net drop down list, having problem post backs, wondering if use jquery select menu instead, not sure how though, guide please,

here's asp.net drop down list code,

drop down list resets

here plugin want use,

http://www.bulgaria-web-developers.com/projects/javascript/selectbox/index.php?country_id=5&city_id=&vehicle_id=&language=

only thing confused is, how can populate jquery select menu using sql datasource.

so essentially, need way information server client. there 2 ways can this.

  1. use ajax call pull in information. of course, in case, need create endpoint ajax hit.

    var yourlist; $.post("getdataservice.svc", function (returndata) {     yourlist = returndata; }); 
  2. save server object javascript object using asp tags.

    <script type="text/javascript">     var yourlist = "<%=this.getdata() %>"; </script> 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -