186
rated 0 times
[
188]
[
2]
/ answers: 1 / hits: 23116
/ 13 Years ago, fri, june 24, 2011, 12:00:00
I have an asp.net application with a static page method. I'm using the below codes to call the method and get its returned value.
$.ajax({
type: POST,
url: myPage/myMethod,
data: {'parameter':'paramValue'},
contentType: application/json; charset=utf-8,
dataType: json,
success: function(result) {alert(result);}
});
What i got returned is [object Object].
Below is my static method. And I also have EnablePageMethods=true
EnablePartialRendering=true
in my ScriptManager.
[WebMethod]
[ScriptMethod]
public static string myMethod(string parameter)
{
return Result;
}
Is there a way for me to get the returned value?
More From » c#