confused about post back behavior...
-
I made a web application that dynamically displays a list of things on the screen. This list is often very long, so you will need to use vertical scrollbars to view everything. At the bottom of the page that are buttons. When a button is clicked, the page is posted back to itself. But now the user is brought back to the top of the page again. How do I keep the user at the same spot on the page that he was looking at when he clicked the button?
-
I made a web application that dynamically displays a list of things on the screen. This list is often very long, so you will need to use vertical scrollbars to view everything. At the bottom of the page that are buttons. When a button is clicked, the page is posted back to itself. But now the user is brought back to the top of the page again. How do I keep the user at the same spot on the page that he was looking at when he clicked the button?
You can try setting SmartNavigation="true" in the tag on your aspx page: <%@ Page language="c#" Codebehind="SmartNav_Test.aspx.cs" SmartNavigation="true" AutoEventWireup="false" Inherits="Web_App.SmartNav_Test" %> Hope this helps.