Is there any way to use ajax I’m using Jquery for this) with asp.net webforms without having to run through the pages life cycle?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using jQuery, as you mentioned, you can use jQuery to call Page Methods directly, without incurring the overhead of MicrosoftAjax.js and the service proxy it generates to enable the
PageMethods.MethodName()syntax.Given a static
[WebMethod]decorated method inPageName.aspxthat’s calledMethodName, this is an example of how you could call it on the client-side: