Below is my Html Code:
And server side code is as follow:[System.Web.Services.WebMethod] public static List GetNames(string name)
{ List nameList = new List();
string strSqlQuery = "Select * from SubRegions where SubRegionName like '%" + name + "%'";
SqlDataAdapter da = new SqlDataAdapter(strSqlQuery, Common.GetConnectionString());
DataSet ds = new DataSet(); da.Fill(ds, "SubRegions");
DataTable dt = ds.Tables["SubRegions"];
DataRowCollection drc = dt.Rows;
foreach (DataRow dr in drc) {
nameList.Add(dr["SubRegionName"].ToString()); }
return nameList; }
This code is run without a master page, but it is
not run in my application. Please give me proper answer.
In this page autocomplete textbox is use.It is jquery ajax application.
I use this code in another project its execute properly and
gave me proper result.
Vincent Maverick DuranoPosted Jun 9, 2015, 6:52 AM