|
Re: navigation to anchor: msg#00098windows.devel.dotnet.web
You could have a startup script in the Page_Load event handler to scroll to the anchor. Like this -- if (IsPostBack) { string str; str = "<script language='javascript'>location.href='#someanchor';</script>"; RegisterStartupScript(this.UniqueID + "OnLoad", str); } You might also be able to scroll by using the the "window.document.body.scrollTop" property. This property gives you the current scroll-position of the page. Ayyappan Nair On Wed, 15 Jun 2005 06:06:39 -0700, Alex Smotritsky <alex_smotritsky@xxxxxxxxx> wrote: >I have an anchor in my webform that I want the page to scroll down to on >postback. I can get this to work by using >Response.Redirect("MyPage.aspx#anchor"), problem is - this causes some other >things to not happen or atleast not survive thru page loading. Specifically, >input fields that I'm disabling and a label who's visible property I'm >setting to true are not getting set when I do the redirect. > > > >I've tried HttpContext.Current.RewritePath with no success as well. > > > >TIA for any ideas. > > > > > > >=================================== >This list is hosted by DevelopMentor® http://www.develop.com > >View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | navigation to anchor: 00098, Alex Smotritsky |
|---|---|
| Next by Date: | Re: navigation to anchor: 00098, Alex Smotritsky |
| Previous by Thread: | navigation to anchori: 00098, Alex Smotritsky |
| Next by Thread: | Re: navigation to anchor: 00098, Alex Smotritsky |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |