Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
This isn't really anything to do with EPiServer CMS. I recommend you post this question on StackOverflow or some other more generic forum
This is really a very generic question and not particulary related to EPiServer, but what you can do is to add following Http module:
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
To <system.web> or <system.webServer> element (depending on pipeline mode - classic or integrated).
This is a common pitfall when creating new project and 1st thing to try out is Ajax support for Asp.Net application.
Hello,
Was this problem solve? I have the same issue here. I have a "POST" ajax call from my Template page and it return with Status Code: 404! I can't find wrong to my code, my WebMethod is there.
And I have already the line below to my web.config file.
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Please help me.
Add the Attribute
[System.Web.Script.Services.ScriptService] to The WebService Class.
Hi ,
Am working on a new project and trying to implement the Jquery ajax call. Here the problem is i have implemented the pagetype and created the page using it. and in my template page i have created the WEB METHOD for my ajax call
in my template file wich is default.aspx , ihave method
[WebMethod]
public static string Add()
{
return "2";
}
and am trying to access this methid using Jquery ajax method as
$.ajax({
type: "POST",
url: "/Prototype/template/page/default.aspx/Add",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
alert(msg.d);
}
});
But am not abel to get the values from this methos . What am i doing wrong ..?