单击链接按钮导航到页面顶部和页面底部 [英] Navigate to Top of the Page and to Bottom of the Page on Clicking Link Button
本文介绍了单击链接按钮导航到页面顶部和页面底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我想要C#代码导航到页面顶部
以及单击链接按钮页面的底部
或按钮
Hello,
I Want a C# Code to Navigate to Top of the Page
and to Bottom of the Page on Clicking Link Button
Or Button
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click>TOP
<asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click>BOTTOM
推荐答案
不需要;一个简单的链接就可以解决问题.
在页面顶部:
No need for that; a simple link will do the trick.
This at the top of the page:
<a name="top"></a>
在底部:
This at the bottom:
<a href="#top">Top</a>
这篇关于单击链接按钮导航到页面顶部和页面底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文