How to Get JSON from External URL?

how to get the url path in jquery json

  • I am using jQuery ajax below code, I had problem with url in the code below register.aspx page in register folder $.ajax({ type: "POST", url: '/register/register.aspx/LoadOtherStates', data: '{Country_ID: ' + $(this).val() + '}', contentType: "application/json; charset=utf-8", dataType: "json", the register.aspx page in root folder its working fine but my "register.aspx" page in "register" folder in this case url does not find. how to get the path of the "register.aspx" page in "register" folder

  • Answer:

    It might be easier to just write the absolute path? http://www.yoursite.com/register.aspx/LoadOtherStates Does this make sense? Your question seems to be unclear.

satish at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.