.asp无法过滤数据

时间:2017-01-10 20:47:19

标签: javascript jquery html asp.net

Result考虑​​以下代码:

[('/User/someuser', ('file.py',)),
 ('/tmp/download', ('file.zip', 'file2.zip')),
 ('/', ('',)),
 ('/usr/local/bin', ('',)),
 ('/tmp', ('file.txt',))]

当我在资源管理器中打开它时,<form name="queryForm" onsubmit="sortData('<%= sortBy %>'); return false;"> <table class="searchtable "> <tr><td class="label">Territory ID </td><td><input type="text" name="filterCustomer_TerritoryID" value="<% filterCustomer_TerritoryID %>"/></td></tr> </table> <input type="submit" onclick="sortData('<%= sortBy %>'); return false;" value="Search"/> <br/><br/> </form> 中的结果是:

.searchtable

我想在<% filterCustomer_TerritoryID %> 中输入过滤值。关于如何解决此问题的任何建议?

1 个答案:

答案 0 :(得分:0)

它与浏览器无关,因为它是必须更改为html的服务器端代码。您必须更改此内容:

value="<% filterCustomer_TerritoryID %>"

到此:

value="<%= filterCustomer_TerritoryID %>"

filterCustomer_TerritoryID必须是受保护或公共字段。

I tested your code and that image was the result.