Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Maintain veritical scroll position in browser

Author  Topic 

bubberz
Constraint Violating Yak Guru

289 Posts

Posted - 2006-11-07 : 16:43:21
We're on v1.1, and after the user clicks the "Edit" link for our datagrid the page posts back, but the browser vertical position is lost and the scroll goes to the top of the page.

I tried "SmartNavigation", but that gave me errors on my javascripting for my mouseover tool tips.

Any suggestions?

Thanks!

MichaelP
Jedi Yak

2489 Posts

Posted - 2006-11-07 : 17:28:56
SmartNavigation is the only built-in way to do it, but as you've seen it's a bit buggy.
The only other way to it would be to create some A Name's and use javascript to perform a "click" on them. I've done that before and it does work, but it is a bit cumbersome.

You'll need to put this someplace in your data row on your data grid / repeater.

<a name="mySectionName" id="mySectionName">


Michael

<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>

Opinions expressed in this post are not necessarily those of TeleVox Software, inc. All information is provided "AS IS" with no warranties and confers no rights.
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-11-07 : 19:51:25
http://aspnet.4guysfromrolla.com/articles/111704-1.aspx
http://scottonwriting.net/sowblog/posts/2650.aspx



- Jeff
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2006-11-07 : 19:55:49
Wow, nice links Jeff!

<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>

Opinions expressed in this post are not necessarily those of TeleVox Software, inc. All information is provided "AS IS" with no warranties and confers no rights.
Go to Top of Page

bubberz
Constraint Violating Yak Guru

289 Posts

Posted - 2006-11-08 : 07:39:08
Thanks to all of you for the help. I'll try your suggestions!
Go to Top of Page
   

- Advertisement -