Gaurry Gaurry - 1 year ago 71
Ajax Question

on page load event $.ajax function sends ajax request. while we looks the url in the Global.asax file it is different Url

$(function () {

url: "MySettings/ChangePassword",
type: "post",
success: function (response) {

when the above code is executed it send request to

It clearly shows in console window.

Answer Source

If you place slash(/) at beginning, then ajax url treat it as hostname/yourURL

So, change url as below

            url: "/MySettings/ChangePassword",
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download