【发布时间】:2011-12-12 09:18:16
【问题描述】:
这很奇怪..我正在寻找与实际解决方案一样多的研究领域,但这就是问题所在: 在我的 asp.net webform 页面中,我正在测试一个查询字符串,然后应用一些逻辑,但是,查询字符串似乎已从 Url 中删除。 如果我通过了这个
..blah.aspx?blah=123
然后我可以在 Request.RawUrl 中看到查询字符串没有问题,但是当我传递我正确的查询字符串时
..blah.aspx?Id=123
查询字符串为空。在站点或应用程序级别的 IIS 上没有请求过滤。这还能在哪里被剥夺?两个小时的挠头和数数......
更新:
没有重定向,逻辑在blah.aspx Pre Init事件中:
protected override void OnPreInit(EventArgs e)
{
if (!string.IsNullOrEmpty(RequestLEID) || !string.IsNullOrEmpty(RequestLEExternalReference))
DisableNavigationContextCheck = true;
base.OnPreInit(e);
}
打破这个事件,我正在即时窗口中测试 Request.RawUrl 属性
【问题讨论】:
-
您能否在您传递的位置发布代码块并重定向到该网址,谢谢您的时间