有一个用C#写的ASP.NET项目,里面有WEB窗体 AAAA.ASPX, BBBB.ASPX, CCCC.ASPX和主页INDEX.ASPX,里面有AAAA,BBBB,CCCC三页的链接。当在IE地址栏里键入网址http://localhost/时显示index.aspx,当点击index.aspx里的AAAA的链接时显示AAAA.ASPX,地址栏变成了http://localhost/AAAA.ASPX,现在想实现无论显示哪个页面地址栏都是http://localhost,该怎么弄呢?
<html><body><iframe src="imdex.aspx" frameborder="0" hspace="0" wspace="0"
marginheight="0" marginwidth="0" height="100%" width="100%" style="LEFT: 0px; POSITION: absolute; TOP: 0px;"></iframe></body></html>
比如用XmlHTTP
用返回的responseText更新当前文档