Gaurry Gaurry - 8 months ago 39
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.


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

So, change url as below

            url: "/MySettings/ChangePassword",