就是有GLOBAL.ASAX.CS里加上这么一段
protected void Application_BeginRequest(Object sender, EventArgs e)
{
string rawUrl = Request.RawUrl;
rawUrl = rawUrl.Replace("html", "aspx");
Context.RewritePath(rawUrl);
}
浙公网安备 33010602011771号