Hi,
I working on WebMethod using ajax call. Below is my working code and not working code. How to declare reWrite rule inside ajax call url ?
Working Code ( This works perfectly ):
Page Name : WebForm2.aspx
URL name : http://blalbla.com/WebForm2.aspx
$(document).ready(function () {
var obj;
$.ajax({
type: "POST",
url: "WebForm2.aspx/GetState",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
--------
Not Working Code :
Page Name : WebForm2.aspx
URL Name : http://blalbla.com/one/two
$(document).ready(function () {
var obj;
$.ajax({
type: "POST",
url: "/one/two/GetState",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",