MVC中如何在Application_BeginRequest中实现跳转到静态页面
请问如何在global.asax中的Application_BeginRequest中实现跳转到静态页面的功能?尝试使用Response.Redirtect进行页面跳转的时候直接报310错误,调试下来是一直在循环,导致跳转过多而报310。
mvc页面跳转 Response.Write --------------------编程问答-------------------- 参考
//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"); //无效
补充:.NET技术 , ASP.NET