Response redirect to an anchor

Hi all!

I have an asp button like this:
<asp:LinkButton OnClick="ShowForm" ID="lnkbtn" runat="server" CssClass="smalltext" Text="Some Text"/>

And a method like this:
protected void ShowForm(object sender, EventArgs e)
        {

            TipPanel.Visible = true;
        }

 

The problem is that when a visitor clicks on the link the page jumps to the top. So I want to place an anchor <a name="foot"> and when a user clicks the link the page jumps to the anchor.

So, in the c# method, I can use Response.Redirect? What is the syntax? What is the best way do you think?

May 04, 2012 11:06
First   1   Last