C# Bookmark

my query is when C# page is loading i need to use Bookmark to go certian point of same page.
i use below coding but its not working please see beloe
 protected void Page_Load(object sender, EventArgs e)
    {
        link1.HRef = "test1.aspx";
    }

int the html page code is below

<a id="link1" runat="server">Book mark is working</a>


please let me know where iam doing mistake or show me example.

i try to use with Response.redirect("test.aspx

But i don't know how to do that please help me.thx
LVL 2
lankapalaAsked:
Who is Participating?
 
lankapalaAuthor Commented:
i found how to do that :
this is a way
Response.Redirect("rent.aspx#top");
0
 
Vikram Singh SainiSoftware Engineer cum AD DeveloperCommented:
Hi,

Please check link:
How to go to a specific point in asp.net page

Regards,
VSS
0
 
lankapalaAuthor Commented:
Error showing Unknown server tag 'asp:History'.
0
 
Vikram Singh SainiSoftware Engineer cum AD DeveloperCommented:
Hi,

Here is the paragraph from same article on link.

In ASP.NET Extensions 3.5, the History control has been removed.  However, the functionality is now incorporated in the ScriptManager control.  Here's the code you need in an ASP.NET AJAX page to track specific page  states and save those states for later. Note that what I previously  called a page save-point is referred to as a history-point in the  ASP.NET Extensions 3.5 naming convention.

Happy Coding.

Regards,
VSS
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.