Quantcast
Channel: Off-Topic Posts (Do Not Post Here) forum
Viewing all articles
Browse latest Browse all 14169

PageMethod response returning whole page, unable to debug the server side method

$
0
0

Hello Guys,

I am unable to debug my method written on server side when a call is send to it through jquery using page method.

In response , I get the whole page.

 

code:

ASPX page:

PageMethods.MyMethod(p1, p2, function(response){

});

ASPX.CS

[System.Web.Services.WebMethod()]

[System.Web.Script.Services.ScriptMethod()]

publicstaticstringMyMethod(stringp1,stringp2){

//Updating database

}

I did ScriptModule entry in web.config, enabled tracing,have ScriptManager and EnablePageMethods is set to true.

Still the server side method is not getting called.

.

please help.


Ng_TechFreak


Viewing all articles
Browse latest Browse all 14169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>