0
前端:如何獲得搜索字符串在ASP.NET中使用的jqGrid
$("#UsersGrid").jqGrid({
url: "jqGridHandler.ashx",
mtype: 'post',
datatype: 'json',
height: 250,
colNames: ['CardNumber', 'CardType', 'CardGrade', 'CanUseMoney', 'MemberName'],
colModel: [
{ name: 'CardNumber', index: 'CardNumber', width: 150, search: true,
searchoptions: { sopt: ['eq']}},
{ name: 'CardType', width: 150},
{ name: 'CardGrade', width: 150 },
{ name: 'CanUseMoney', width: 150 },
{ name: 'MemberName', width: 150, search: true,
searchoptions: { sopt: ['eq']} }
],
rowNum: 10,
rowList: [10, 20, 30],
sortname: 'CardNumber',
viewrecords: true,
sortorder: 'asc',
caption: 'card',
pager: $("#pager")
}).navGrid('#pager',
{ search: true, edit: false, add: false, del: false, searchtext: "search" });
jqGridHandler.ashx:
HttpRequest request = context.Request;
string _searchsrt = request["searchString"];
我想獲得searchString
在 「jqGridHandler.ashx」,但我發現它是「」 該怎麼辦?誰能幫我嗎? TKS!