<asp:TextBox ID="txttehsil" runat="server" class="settings_textbox_body"></asp:TextBox>
[System.Web.Services.WebMethod] public static List<string> GetNames(string name) { List<string> nameList = new List<string>(); 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.
autocomplete
jquery ajax application