URL rewriting issue when postbacks and URL rewriting
来源:互联网 发布:午夜福利直播软件 编辑:程序博客网 时间:2024/06/07 12:02
When postback, it will cause a 301 redirect to get the rewrite page, so it will lose the original post.
http://blogs.iis.net/ruslany/archive/2008/10/23/asp-net-postbacks-and-url-rewriting.aspx
The key solution:
protected void Page_Load(object sender, EventArgs e)
{
if ( !String.IsNullOrEmpty(Request.ServerVariables["HTTP_X_ORIGINAL_URL"]) )
{
form1.Action = Request.ServerVariables["HTTP_X_ORIGINAL_URL"];
}
}
- URL rewriting issue when postbacks and URL rewriting
- php-url-rewriting-with-htaccess-and-microsoft-iis-url-rewriting
- IIS URL Rewriting and ASP.NET Routing
- URL ReWriting 示例(C#)
- IIS Url ReWriting 示例
- Url ReWriting 示例
- Url ReWriting 示例
- URL Rewriting 重写解决方案
- URL Rewriting 重写解决方案
- Servlet URL Rewriting
- Url Rewriting with ASP.NET
- Url Rewriting后的问题
- Url Rewriting后的问题
- 在ASP.NET中实现Url Rewriting
- 在ASP.NET中实现Url Rewriting
- 在ASP.NET中实现Url Rewriting
- 在ASP.NET中实现Url Rewriting
- Apache1.3 URL Rewriting Guide 1
- 我的低谷期~~~
- javascript 写的两个排序算法
- Dtree
- 对日外包总结-泛泛而谈
- 树状数组 hdu
- URL rewriting issue when postbacks and URL rewriting
- vs2005 2008 编译成功,但是发布的时候失败
- ActionFilter for MVC asp.net
- (转)面试趣味智力问题收集与整理
- 情海无涯,回头是岸
- [推荐]看到这一幕.全获嘉的人民都笑了.! 我的获嘉人!牛人!穆利堂
- Oracle 查看 表 存储过程 触发器 函数 等对象定义语句的方法
- 执行链接时报错:No such file or directory
- 以太网卡杂记之MAC和PHY