日期:2014-05-17  浏览次数:20433 次

跳转到指定网页的底部
现在网页上的返回按钮要求返回上一页的底部。 a跳转到b的底部
我在b底部加了一个
<a name="a" >
然后
a
Response.Redirect("a.aspx?#a");
可是并未回到b底部
这是为什么...


------解决方案--------------------
<a name="a" id="a"></a>
------解决方案--------------------
Response.Redirect("a.aspx?#a");
换成
 Page.ClientScript.RegisterStartupScript(Page.GetType(),"js","location.href='a.aspx#a'",true)

<a name="a" ></a>
------解决方案--------------------
探讨
Response.Redirect("a.aspx?#a");
换成
Page.ClientScript.RegisterStartupScript(Page.GetType(),"js","location.href='a.aspx#a'",true)

<a name="a" ></a>