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,
here plugin want use,
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.
use ajax call pull in information. of course, in case, need create endpoint ajax hit.
var yourlist; $.post("getdataservice.svc", function (returndata) { yourlist = returndata; });
save server object javascript object using asp tags.
<script type="text/javascript"> var yourlist = "<%=this.getdata() %>"; </script>
Comments
Post a Comment