ASP.Net Tips & Tricks

Saturday, April 21, 2007

Prevent Webpage scroll back to the top position

----------------------------------------------------------
Prevent Webpage scroll back to the top position
----------------------------------------------------------

If the webpage position is returned to the top after every post back
it will be an irritant.

When the MaintainScrollPositionOnPostback property is set to true, the user is instead returned to the last position on the page.

<%@ Page Language="VB" MaintainScrollPositionOnPostback="true" %>

This property is by default false

When Web pages are posted back to the server, the user is returned to the top of the page. On long Web pages, this means that the user has to scroll the page back to the last position on the page.








Submit URL
Posted by M Shasur at 12:26 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: ASP.Net, PostBack, Scroll Position, Webpage Scrolling

No comments:

Post a Comment

Newer Post Home
Subscribe to: Post Comments (Atom)

Loading...
Related Posts Plugin for WordPress, Blogger...
Related Posts Plugin for WordPress, Blogger...
Related Posts Plugin for WordPress, Blogger...
Related Posts Plugin for WordPress, Blogger...

Popular Posts

  • ASP.NET - Intranet settings are now turned off by default. Intranet settings are less secure than Internet settings. Click for options ...
    Intranet settings are now turned off by default. Intranet settings are less secure than Internet settings. Click for options Dialog Intranet...
  • Error ! Content controls are allowed only in content page that references a master page
    ---------------------------------------------------------- Content controls are allowed only in content page that references a master page. ...
  • How to Change Controls to Absolute Position in Visual Studio
    Absolute Positioning of Web Controls in ASP.NET using Visual Studio Here is the way to Set the Absolute positioning in Visual Studio. ...
  • {"Transaction failed. The server response was: Sending address not accepted due to spam filter"}
    {"Transaction failed. The server response was: Sending address not accepted due to spam filter"}
  • Automating Excel or Word using Asp.Net 2.0
    Automating Excel or Word (or any Office product) is not recommended: Problems using Automation of Office server-side Developers who try to u...
  • Increase Website Speed ASP.net
    ---------------------------------------------------------- ' Speedup Website - Increase Website Speed ASP.net --------------------------...
  • Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls.
    Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls. Source Error: Line 1: ...
  • The SMTP host was not specified
    {"Failure sending mail."} [System.Net.Mail.SmtpException]: {"Failure sending mail."}
  • Redirect Page on Anonymous Entry
    ---------------------------------------------------------- ' Checking if an user has logged in -----------------------------------------...
  • HTML5 DataList not working in Internet Explorer 9
    For strange reasons HTML5's datalist feature is not working in IE9. It is however working fine with Mozilla Firefox

Search ASP.Net

Google

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

ASP.Net Tips & Tricks

Dud Links

  • VBA Tips & Tricks
  • SQL Tips & Tricks
  • Effective Project Management
  • Dot Net Tips & Tricks
  • ASP.Net Tips & Tricks

Loading...

Blog Archive

  • ►  2012 (1)
    • ►  December (1)
  • ►  2011 (2)
    • ►  February (1)
    • ►  January (1)
  • ►  2010 (7)
    • ►  September (3)
    • ►  April (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2009 (5)
    • ►  June (3)
    • ►  May (1)
    • ►  March (1)
  • ►  2008 (1)
    • ►  July (1)
  • ▼  2007 (5)
    • ▼  April (5)
      • Automating Excel or Word using Asp.Net 2.0
      • Increase Website Speed ASP.net
      • Redirect Page on Anonymous Entry
      • Error ! Content controls are allowed only in conte...
      • Prevent Webpage scroll back to the top position