jqgrid后台处理搜索,
如果点击jqgrid自带的搜索,则向后台传递“_search”参数,和searchField、searchOper、searchString三个值。如下所示:
string _search = context.Request.QueryString["_search"]; if (_search == "true") { string searchField = context.Request.QueryString["searchField"]; string searchOper = context.Request.QueryString["searchOper"]; string searchString = HttpContext.Current.Server.HtmlDecode(context.Request.QueryString["searchString"]); if (searchString != "") { switch (searchField) { case "xqlx": break; case "tjrxm": break; case "tjrlxdh": break; default: break; } } }
若对您有用,请赞助个棒棒糖~