asp.net - ajax call using Jquery without method name in url -


What if the AJAX call contains only the Panjimm in the URL? Does he call the page_load method of that page?

  $ .ajax ({type: "POST", url: "PageName.aspx", // no method name data: "{}", ContentType: "app / jason; charset = UTF-8 ", datatype:" Jason ", success: work (message) {}};  

If no method name is mentioned, is this a complete page similar to postback?

An AJAX call bus is a HTTP GET / POST request for the provided url It does not have to be ASP.net which recognizes the method name or web method and passes the call in a proper manner.

If you do not specify the name of any method, then it will be similar to opening your new URL browser. The call page will go through the life cycle and will return the HTML provided or if you

  the response Write ("Hello") will end the response; Response.End ();  

Then only "Hello" will be returned by the server.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -