Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Our developer left recently, trying to finish one of his old projects 1

Status
Not open for further replies.

33788

IS-IT--Management
Mar 15, 2005
97
US
We have a site developed in .aspx that users can edit the fields, update it, and delete. All the data is being pulled from a SQL 2005 database. Somehow Report Server is involved also. But to do the edit, update, delete, etc.. is all done in the .aspx site. All works fine but when someone clicks edit it works but the page refreshes back to the top then you'll have to scroll down back to your field you wanted to edit. Wondering if there is any way around this refresh to the top issue to where when someone clicks edit it just flips over to edit mode and stay at the same field or even if it refreshes brings you back to the record you want to edit. Any advice will be much appreciated, thanks.
 
<%@ Page MaintainScrollPositionOnPostback="true" %>
 
Thanks for the prompt reply TipGiver. That information is much appreciated. Just got another questions where would I put this <%@ Page MaintainScrollPositionOnPostback="true" %>? Would it go into the default.aspx or the web.config? Also where inside of it would it go? I'm a newbie at all this stuff, thanks ahead.
 
That is a page directive and goes in the HTML portion of the page. However, it will only work with .NET 2.0 If you are using 1.0 or 1.1, you will need to set the Smartnavigation property of the page = TRUE. But test carefuly, Smartnavigation can cause problems.

Jim
 
It goes to the aspx page. The first lines in source view begin with the <% %> tags (asp tags). You will see a PAGE directive (the @ symbol). Just add the: MaintainScrollPositionOnPostback="true"

 
Yes, it is for 2.0 version... i assumed so because i saw that they use SQL 2k5..
 
Thanks again TipGiver and everyone. That worked, I'm starting to like this development stuff now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top