• 2k
  • 95
  • 21.2k

dropdown bind from ajax call

Jan 21 2015 5:16 AM
hello plz help me ,
actually m binding a dropdown list using this code
<script type="text/javascript">
$(document).ready(function () {
type: "POST",
contentType: "application/json; charset=utf-8",
url: "AddBooks.aspx/BindddlCategory",
data: "{}",
dataType: "json",
success: function (data) {
$.each(data.d, function (key, value) {
error: function (result) {

also [webmethod] invoking fine but the problem is this dropdown gets populated if my page contains <form runat= "server"> tag
& if m using masterpage & in its content page the dropdown is not populating...
can u tell me y???

Answers (1)