惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Palo Alto Networks Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
Schneier on Security
Engineering at Meta
Engineering at Meta
I
InfoQ
L
LangChain Blog
Cyberwarzone
Cyberwarzone
T
Tenable Blog
WordPress大学
WordPress大学
P
Privacy & Cybersecurity Law Blog
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Jina AI
Jina AI
C
CERT Recently Published Vulnerability Notes
Scott Helme
Scott Helme
博客园 - 三生石上(FineUI控件)
酷 壳 – CoolShell
酷 壳 – CoolShell
Know Your Adversary
Know Your Adversary
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Last Watchdog
The Last Watchdog
Last Week in AI
Last Week in AI
Cloudbric
Cloudbric
S
SegmentFault 最新的问题
爱范儿
爱范儿
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 叶小钗
AI
AI
T
Tor Project blog
I
Intezer
T
Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Visual Studio Blog
N
News and Events Feed by Topic
Latest news
Latest news
S
Security Affairs
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog RSS Feed
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
S
Securelist

博客园 - 什么都不知道

DataSet的Xml序列化问题 VB.NET的一个小问题 Access is denied的问题 - 什么都不知道 存储过程output参数问题 SQL Server的效率? datagrid刷新问题 使用Visio DrawingControl的应用开发(补) 突起效果的Label WinForm下TextBox的数据绑定和更新 使用Radio按钮选择DataGrid行 如何在运行时加载不处于应用程序目录下的assembly 使用VSA给程序加上脚本支持 删除所有Windows组件 在ASP.NET中嵌入wml标记 c#中动态装载dll 处理大型xml文件 使用Visio 2003 Drawing Control开发应用(3)(4) 使用Visio 2003 Drawing Control开发应用(2) 使用Visio 2003 Drawing Control开发应用(1)
RedirectToMobilePage的问题
什么都不知道 · 2004-08-12 · via 博客园 - 什么都不知道

用ASP.NET开发wap应用的时候,有时是需要进行重定向页的,用Response.Redirect是不行的,可能是因为设备不同的原因,入口点不同,看了一些资料,大约说法是这样的。
只能用RedirectToMobilePage,可是这样转向出来的页面总会加上__redir=1的参数。本以为是可以通过设置解决的,后来用Reflector看了里面的实现,赫然看到了

static MobileRedirect()
{
      MobileRedirect.QueryStringVariable = "__redir";
      MobileRedirect.QueryStringValue = "1";
      MobileRedirect.QueryStringAssignment = MobileRedirect.QueryStringVariable + "=" + MobileRedirect.QueryStringValue;
      MobileRedirect._redirectQueryString = "?" + MobileRedirect.QueryStringAssignment;
      MobileRedirect._redirectQueryStringInline = MobileRedirect.QueryStringAssignment + "&";
      MobileRedirect._disallowRedirectionKey = "_disallowRedirection";
}
不明白是为什么要加这个东西,于是作罢。
想了一些方法,比如在BeginRequest里面发现是重定向的页,就CompleteRequest,然后自己在创建一个request出去,可能因为context不同,
并没有什么用处,虽然我可以把需要重定向页的内容直接write出来,但是url仍然带有__redir=1的字样。

至今仍未找到解决方法