script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
using System; using System.Collections.Generic; using System.Data; using System.Data.OleDb; using System.Globalization; using System.IO; using System.Linq; using System.Web; using System.Web.Script.Services; using System.Web.Services; namespace FinanceWebApplication.WebServices { /// <summary> /// Summary description for UploadEmployee /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // 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 UploadEmployee : System.Web.Services.WebService { [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string Test() { return "Hi"; } }