I have seen and used the htc solution for DIVs overflow types of scrollbars but I need the whole page to retain its browser's scrollbar position.
Of course this is for IE but if it works for FF then thats ok too. :D
Thanks
Printable View
I have seen and used the htc solution for DIVs overflow types of scrollbars but I need the whole page to retain its browser's scrollbar position.
Of course this is for IE but if it works for FF then thats ok too. :D
Thanks
I'm not actually 100% certain but i think setting smartnavigation to true will maintain scrollposition. To try it just add SmartNavigation = true to your page directive.
Yes, I have used that property before but it gives flakey results and causes some other random issues. I read its best not to use it. Does it work for you well?
Actually I haven't used smartnavigation for about 3 years although I seem to remember it working for me (also to maintain scroll position).
Sorry not more help.
No prob. ;)
I did find this that should shed some light on SmartNavigation - http://weblogs.asp.net/ksamaschke/ar...4/27/6085.aspx
Also found this for an alternative but havent tried it out yet.
http://www.codeproject.com/aspnet/lili.asp
SmartNav in 1.1 is buggy.
I'd do this myself, capture the scrollbar position before each postback, save it to a hidden field and re-implement the scrollbar position after each reload.
How do you capture the SB position?
The document.body.scrollTop property
Oh so its a JS thing. I'll look into the code then.
Where and how should I call it? I assume using some Page.RegisterStartupScript but should it go in the Page_Load event?
Thanks
I got this yesterday and is a good solution as there is allot more to it then "document.body.scrollTop" property. :)
http://aspnet.4guysfromrolla.com/articles/111704-1.aspx
Thanks Shuja Ali :thumb:
Browser compatibility, pish posh :P
Guess you didnt read part 2 then. This is where it all is put together. ;)
Uhm... it's just a web control. That should be second nature for you. Not second part! :afrog:
Yes and how easy is that :) Remember I am not an ASP.NET expert like yourself. I'm still learning it but its going better lately.
:afrog:
A few more days and you'll be in the dark side... and you'll see how much better it is thatn windows forms development! :afrog:Quote:
Originally Posted by RobDog888
I'm already liking what I have learned so far but the cross browser platform issues are a real headach that you dont have with Winforms development.
I have another question but I will create a new thread for it. ;)