[AcceptVerbs(HttpVerbs.Post)]
public JsonResult Autocomplete3(string term)
{
string cnnStr = ConfigurationManager.ConnectionStrings["GraphConnection"].ConnectionString;
SqlConnection dcnn = new SqlConnection(cnnStr);
SqlCommand dcmd = new SqlCommand("dbo.GetCountry", dcnn);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = dcmd;
DataSet ds = new DataSet();
da.Fill(ds);
List
return Json(cty, JsonRequestBehavior.AllowGet);
}
No comments:
Post a Comment