Opposite of this question: Retain anchor after postback in asp.net
I'm having the issue that on postback, it's keeping an anchor.
I'm starting in Browse.aspx; user clicks something which takes them to an anchor on the page. They then choose a new filter from DropDownList, so it refreshes back to page 1 with the filter in place, but the anchor stays in the url causing them to jump down the page.
I tried added PostBackUrl="~/Browse.aspx" attribute to the DropDownList to no avail.
Any ideas?
Note, I'm sending them to the anchor with he following method in code behind:
RegisterStartupScript("navigateto", "<script type='text/javascript'>document.location.href='#photo1';</script>");