I want to call an anchor when a user click a button so it doesn't go to the top of the page when the user clicks the button. Can someone tell me how to do this?
lol I just finished doing this before Christmas! Just let me find that code.
*runs off to retrieve code....
aha here we are in the html add an anchor in this case I called it #AvailableSites. Then in the code behind put this code in. When your page returns from the post back it will relocate itself at your locator.
'move the page to the Available Sites Location
sb.Append("<Script Language=Javascript>"
sb.Append("location.href='#AvailableSites'"
sb.Append("</Script>"
RegisterStartupScript("Locator", sb.ToString) That'l do donkey, that'l do
Mark
If you are unsure of forum etiquette check here faq796-2540
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.