jqgrid後臺處理搜索, 如果點擊jqgrid自帶的搜索,則向後臺傳遞“_search”參數,和searchField、searchOper、searchString三個值。如下所示: ...
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; } } }