CasCading DropDownList using Generic Handler and JQuery in Asp.net

ometimes we need to do fill dropdownlist using JQuery and Generic Handler in Asp.net Explanation given below: Design Page: SELECT YOUR STATE Generic Handler: public void ProcessRequest(HttpContext context) { context.Response.ContentType = "application/json"; int id = Convert.ToInt32(context.Request["id"]); string sJSON = GetProduct(id); context.Response.Write(sJSON); } public string GetProduct(int id)

Use of Post and Get Method in Jquery

Use of Post Method in Jquery to Send Data on Button Click $(document).ready(function(){ $('input[id$="Button Id"]').click(function(){ var Fname="Text Value"; // name is local variable you can use without declaring. var res=$.post('Path of Generic Handler or Webservise', { name: Fname}, function (result) { alert(result); }); rsp.error