Forum Moderators: open

Message Too Old, No Replies

Postback Anchor

         

pedrodepacos

3:43 am on Aug 9, 2003 (gmt 0)

10+ Year Member



Is there a way to scroll to a specific location on a page after a postback?

This is the way I was thinking of implementing it...
After a user clicks a button on my page, the page is redirected to an anchor that is located above a specified row in a datagrid on the same page. Basically I want a user to be able to add a row in a datagrid (that may not be seen on the screen at the time) and then show that it is indeed added to the datagrid... instead of the postback automatically taking the user to the top of the page (where the row that has been added may be out of view).

Is there a better way of doing this?

aspdaddy

11:34 pm on Aug 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sounds a good idea to me. Will work with a table, dont know about .net datagrids.

If the page cannot scroll (too small), I would just add a "new" symbol to the row, or make it appear first/last in the page to show it is the latest added.