using System;
using System.Web;
using System.Collections;
using System.Data;
using System.Web.Script.Services;
using System.Web.Services;
///
/// Empty web service template.
///
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class WebService : System.Web.Services.WebService
{
///
/// Constructor.
///
public WebService()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
///
/// Returns the data from DB.
///
/// String parameter for sql command
[WebMethod]
public DataSet GetDataSet(string parameter)
{
// INSERT YOUR WEB SERVICE CODE AND RETURN THE RESULTING DATASET
return null;
}
///
/// The web service method to be called by AJAXControlToolkit. The signature of this method must match this method.
/// Note that you can replace "GetCompletionList" with a name of your choice, but the return type and parameter name and type must exactly match, including case.
///
/// Prefix to be searched
/// Number of suggestions to be retrieved from the web service
/// Array of suggestions
[WebMethod(MessageName = "GetCompletionList")]
[ScriptMethod]
public string[] GetCompletionList(string prefixText, int count)
{
// INSERT YOUR WEB SERVICE CODE AND RETURN THE RESULTING STRING ARRAY
return null;
}
}