Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)

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

1 solution

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>
Share this answer
Prasad CM 10-Jun-11 6:59am    
Ya Its Working...

Before I Tried This One Only That Time Not Worked..

Thank You...
RakeshMeena 13-Jun-11 6:21am    
My 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900