is possible call method not tagged [ajax.ajaxmethod]
ajaxmethod? have method populates gridview control inside updatepanel; loads data, sets properties, etc. however, need call method ajaxmethod pass same information non-ajax method does. problem gridview control null when ajaxmethod tries call methods on it, resulting in nullreferenceexception.
how can fix ajax method can access controls on page? don't think can re-instantiate control @ runtime. should running ajax code inside of updatepanel or that, instead of making call directly via javascript? need client-side processing callback well, that's why calling ajaxmethod direct javascript, cannot access controls on page filled method.
why don't use jquery's ajax method?
$.ajax({ type: "post", url: <url of method>, success: function (data) { } });
Comments
Post a Comment