AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

Maintain ASP.NET Tree Position on Postbacks : Paul Kimmel

Sunday, August 10 2008

Have you found ASP.NET lacking when it comes to keeping track of the last selected position between postbacks? You're not alone. Learn a JavaScript solution that does the trick. The TreeView in ASP.NET 2.0 is a great control, but it seems to have one shortcoming: it isn't good at keeping track of the last selected position between postbacks. If you scroll down to the fiftieth item and expand a parent node, you have to start over at the top when the page returns. In the previous version of .NET, you might have considered using the SmartNavigation feature instead. SmartNavigation is a property of a Web page. It is a Boolean that you can set in the Page directive or code behind. A Page directive with this attribute set to true may look like this....

Read More:
Maintain ASP.NET Tree Position on Postbacks : Paul Kimmel
Also See:
Develop Poll Application in ASP.NET 2.0 : Bipin Joshi
Relative paths in master pages : Swanand Mokashi
Build a SqlSitemapProvider Treeview Navigation Control with SqlCacheDependency : Peter Bromberg
Highlighting Multiple Search Keywords in ASP.NET : Dimitrios Markatos
Adding a build banner to ASP.NET Pages : Adam Langley

Post your comment

Comment