Posted on: 12/21/2014 5:40:57 AM | Views : 821

I am trying to use Page Methods and have run into a problem when developing websites using VS 2013.
I you create a new Website within VS2013 and select the ASP.NET Empty Website Visual C# template and then create a Default.aspx page containing the following:
<%@ Page Language="C#" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <script runat="server"> [System.Web.Services.WebMethod] public static string HelloWorld() { return "Hello World"; } </script>     <script type='text/javascript'>         function helloWorld() { PageMethods.HelloWorld(onSucceed, onError); }         function onSucceed(result) {alert(resu ...

Go to the complete details ...