jqgrid後臺處理搜索,javascript
若是點擊jqgrid自帶的搜索,則向後臺傳遞「_search」參數,和searchField、searchOper、searchString三個值。以下所示:java
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; } } }