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?
Protected
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"