【发布时间】:2010-07-05 09:34:52
【问题描述】:
我在文件夹结构 webroot/folder/ 中有一个名为 default.aspx 的简单 Web 表单
当我导航到http://myapp/folder/?key=value 时,页面返回正常,当我调用时
<%= Request.QueryString[0] %>
我在页面上呈现http://myapp/folder/?key=value。但是,如果我打电话
<%= Request.QueryString["key"] %>
我什么也得不到,当我打电话时
<%= Request.QueryString[1] %>
我收到Index was out of range. Must be non-negative and less than the size of the collection.
这似乎是一个非常微不足道的问题,但我无法弄清楚发生了什么?!
【问题讨论】:
-
我仍然得到同样的错误:(。以前从来没有遇到过这个......奇怪
标签: c# asp.net query-string sitecore