You are currently viewing the BOOK: Professional ASP.NET 3.5 AJAX ISBN: 9780470392171 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I have completed the example on page 14 and 15 and when trying to run once I press the button all I get is an error in internet explorer saying "error on page"
My asmx.cs file looks like this
it is located at aspajax3point5\App_Code\listing1-1.cs
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
/// <summary>
/// Summary description for listing1_1
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class listing1_1 : System.Web.Services.WebService {
public listing1_1 () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld() {
return "Hello ajax World";
}
}
the asmx file is located in a differenet path
aspajax3point4\listing1-1.asmx