public void ProcessRequest(HttpContext context) { var PrefixText = context.Request.QueryString["term"]; var Country = context.Request.QueryString["country"]; var City = context.Request.QueryString["city"]; var ckisproducttype = context.Request.QueryString["ckisproducttype"]; RQParams = new MDMSVC.DC_Activity_Search_RQ(); RQParams.Status = "ACTIVE"; if (PrefixText != "") { RQParams.Name = PrefixText; } if (!string.IsNullOrWhiteSpace(Country)) { if (Country.IndexOf("-") == -1) { RQParams.Country = Country; } } if (!string.IsNullOrWhiteSpace(City)) { if (City.IndexOf("-") == -1) { RQParams.City = City; } } if (!string.IsNullOrWhiteSpace(ckisproducttype)) { if (ckisproducttype.IndexOf("-") == -1) { RQParams.ProductCategorySubType = ckisproducttype; } } RQParams.PageNo = 0; RQParams.PageSize = 500; var res = _Objmaster.GetActivityNames(RQParams); context.Response.Write(new JavaScriptSerializer().Serialize(res)); }