2012年6月28日

aspx页面静态化

摘要: IIS设置:站点右键属性,自定义错误,找到404,修改为url,将url设置成/Default.aspx测试一下:随便敲个地址,比如:http://localhost/123.html,应该跳转到Default.aspx然后在Default.aspx中写如下逻辑:View Code 1 protected void Page_Load(object sender, EventArgs e) 2 { 3 if (Request.RawUrl.IndexOf(".html") == -1) 4 { 5 ... 阅读全文

posted @ 2012-06-28 14:21 哥是技术人 阅读(366) 评论(0) 推荐(0)

导航