您的位置:首页 > 编程语言

我的,URL ReWrite代码

2004-07-02 13:05 302 查看
Global.aspx.cs:

protected void Application_BeginRequest(Object sender, EventArgs e)
<?xml version="1.0" encoding="utf-8" ?>
<ReWriterUrls>
<rule>
<old>(.*)/TestUrlRe/file(.*)/(.*).html</old>
<new>../WebForm1.aspx?id=$2&type=$3</new>
</rule>
<rule>
<old>(.*)/TestUrlRe/t(.*)/(.*).html</old>
<new>../WebForm1.aspx?tid=$2&ttype=$3</new>
</rule>
</ReWriterUrls>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: