HtmlAnchor

  • Thread starter Thread starter Gabe Garza
  • Start date Start date
How about Response.Redirect("~\webform1.aspx#anchorname") ???

HTH,
Greg
 
I figured out a way using RegisterClientScriptBlock() and adding JavaScript
code at the bottom of the HTML section that sets the anchor using
document.location.hash = anchorname;

Within the JavaScript that I added with RegisterClientScriptBlock() I set
'anchorname' to the anchor that I want to anchor too.

Once the page gets to the bottom of the HTML section, document.location.hash
= anchorname; gets called and the client's page will be adjusted to the
anchor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top