[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
public List SearchData(string q, int limit)
{
return new List { new tdata { id = 0, name = "nitin" } };
}
public class tdata
{
public string name { get; set; }
public int id { get; set; }
}