原帖地址
http://topic.csdn.net/u/20080716/17/2ff27f2e-c362-4a74-a8a7-057ffd35cb45.html
问题描述
我现在打开一个页面是http://localhost/test/WebForm3.aspx?id=11
如果我不做任何修改,IE地址栏里面将显示该地址,现在我想通过我上面的方法,让IE地址栏里面显示的是
http://localhost/test/WebForm3-11.aspx?
这样的形式,那怎么做.用我上面的方法可以实现吗?
用类似这样的方法,不用微软提供的DLL那种方法
string path = Request.Url.ToString();
if (path.EndsWith("/test/WebForm3.aspx"))
{
Context.RewritePath("/test/WebForm3-11.aspx?");
}