Remove anchor on postback

deejay

New Member
Opposite of this question: Retain anchor after postback in asp.netI'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:\[code\] RegisterStartupScript("navigateto", "<script type='text/javascript'>document.location.href='http://stackoverflow.com/questions/1864322/#photo1';</script>");\[/code\]
 
Back
Top