convert dynmic page to static
来源:互联网 发布:superjunior厂牌知乎 编辑:程序博客网 时间:2024/06/06 08:34
在 Global.asax 中添加 Application_BeginRequest 事件:
protected void Application_BeginRequest(object sender, EventArgs e)
{
string pathAndQuery = Request.Url.PathAndQuery.ToLower();
if (pathAndQuery.IndexOf(".html") > -1)
{
pathAndQuery = "~/" + pathAndQuery.Replace(".html", ".aspx");
HttpContext.Current.RewritePath(pathAndQuery);
}
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
string pathAndQuery = Request.Url.PathAndQuery.ToLower();
if (pathAndQuery.IndexOf(".html") > -1)
{
pathAndQuery = "~/" + pathAndQuery.Replace(".html", ".aspx");
HttpContext.Current.RewritePath(pathAndQuery);
}
}
- convert dynmic page to static
- How To Convert HTML Page To Image
- Web page convert to pdf file
- Convert XAML Flow Document to XPS with Style (multiple page, page size, header, margin)
- Convert Dynamic to Static Construction -- 动态到静态构造转换
- Convert Static to Dynamic Construction -- 静态到动态构造转换
- How to freeze a dynamic aspx page into a static html page (on the server).
- How to freeze a dynamic aspx page into a static html page (on the server).
- Convert HTML Page To a PDF Using Open Source Tool [ Linux / OS X / Windows ]
- define a static method to convert datatime to a formatted string with uesr-defined
- convert -page 参数的使用
- Static page aggregation
- Convert CHtmlView to CHtmlCtrl
- string Convert To XML
- convert UTF8 to SHIFT_JIS
- convert decimal to binary
- Convert Mysql to Oracle
- convert RGB to HLS
- 理解字符乱码问题
- uva—537
- jquery easy ui tabs使用
- ftp
- 基于antlr的表达式解析器
- convert dynmic page to static
- 将 Shiro 作为应用的权限基础 五:SpringMVC+Apache Shiro+JPA(hibernate)整合配置
- HDU 2059 龟兔赛跑 简单DP
- C风格的字符串和std::string的比较
- (考前水题)UVa 12299 线段树
- 非计算机专业的同学,不见得也要追求计算机基础扎实
- Qt 之 ZIP开源库 QuaZIP
- 从dll文件或者def文件生成lib文件
- X264命令含参数实例与参数详解