Dipak Shinde

Dipak Shinde

  • NA
  • 8
  • 1.6k

Java script isn't executing in my application

Jun 9 2015 6:32 AM
Below is my Html Code:
 <asp:TextBox ID="txttehsil" runat="server" class="settings_textbox_body"></asp:TextBox>
And server side code is as follow:
 
[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.
 

Answers (1)