This is my Jquery Method
var domain = $(domainId).parent().find("input[name$=whoisdomain]").val();
var params = "{domainname:'" + domain + "'}";
$.ajax({
type: 'POST',
url: '../SearchResult.aspx/GetResult',
contentType: 'application/json; charset=utf-8',
data: params,
dataType: 'json',
processData:true,
success: AjaxSucceeded,
error: AjaxFailed
});
Server side WebMethod Is:
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public static List<string> GetResult(string domainname)
{
//code is here
}
ERROR IS:
{"Message":"Invalid web service call, missing value for parameter: \u0027domainname\u0027.","StackTrace":" at System.Web.Script.Services.WebServiceMethodData.CallMethod(Object target, IDictionary`2 parameters)\r\n at System.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object target, IDictionary`2 parameters)\r\n at System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams)\r\n at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType":"System.InvalidOperationException"}
Plz tell me where is the error..this code work fine in all browers except Internet Explorer 10