public HttpResponseBase sortSet() { string result = "{success:false}"; string strJson = Request.Params["result"]; _productMgr = new ProductMgr(connectionString); JavaScriptSerializer js = new JavaScriptSerializer(); List<Product> productList = js.Deserialize<List<Product>>(strJson); if (_productMgr.ExecUpdateSort(productList)) { result = "{success:true}"; } this.Response.Clear(); this.Response.Write(result); this.Response.End(); return this.Response; }