Panels and Anchor tags RRS feed

  • Question

  • Hi.  I am a new programmer and I am using panels to segregate content on a page.  I set an anchor on one panel to reference a target anchor on a different panel of the same page.  Using VB i used Anchor.Href ="#targetanchor "  I used the click event for the Anchor to change the visibility of the 2 panels first and that part works.  but the Href statement does not set the page to the target anchor.  What am I missing?



    Sub proh_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles proh.ServerClick
     PrivPanel.Visible = False

    MemPanel.Visible = false location or anchor tag to click id = "proh"

    Legal.Visible = False  location of target anchor tag name = "prohibited"

    proh.HRef = "#prohibited"

    • Moved by nobugz Sunday, April 5, 2009 9:39 AM forums.asp.net
    Sunday, April 5, 2009 8:04 AM


  • Hello Daniel,


    Thank you for your post!  I would suggest posting your question in the 'MSDN > Forums Home > Visual Basic > Visual Basic General ' located here:  http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads

    Have a great day!


    SachinW Tier 2 Application Support Server and Tools Online Engineering Live Services Team
    • Proposed as answer by SachinW Monday, April 6, 2009 5:31 AM
    • Marked as answer by SachinW Wednesday, May 20, 2009 9:02 AM
    Monday, April 6, 2009 5:31 AM