当前位置:编程学习 > C#/ASP.NET >>

MVC中如何在Application_BeginRequest中实现跳转到静态页面

请问如何在global.asax中的Application_BeginRequest中实现跳转到静态页面的功能?
尝试使用Response.Redirtect进行页面跳转的时候直接报310错误,调试下来是一直在循环,导致跳转过多而报310。
 
//index.html放在根目中
Response.Redirect("~/index.html");//无效
Response.Redirect("index.html"); //无效
//index.html放在shared文件夹中
Response.Redirect("~/shared/index.html");  //无效
Response.Redirect("shared/index.html");  //无效
Response.Redirect("index.html");  //无效
mvc页面跳转 Response.Write --------------------编程问答-------------------- 参考
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,