|
|
|
During a page postback, the page is redrawn by default and users see a short but annoying flickering. Worse, the scroll position isn't preserved during postbacks (the page scrolls to its top) and the first control on the page takes the input focus. This behavior contrasts with the experience that users have with regular Windows applications and tends to be confusing.
If you're working with Internet Exporer 5.0 or a later version, you can overcome all these shortcomings by setting the SmartNavigation property to True, which performs the following tasks:
Eliminates the flashing that usually occurs when a page is reloaded. Preserves the scroll position in longer pages. Maintains the input focus between postbacks. Retains only the last page state in the browser's history. This property is especially useful for forms that do a lot of postbacks but whose contents don’t change much between postbacks. Remember that it works only with Internet Explorer 5.0 or later versions, even though you can safely set the SmartNavigation property to True even for Internet sites, because ASP.NET checks the browser version and ignores this property for downlevel browsers, such as earlier versions of Internet Explorer or Navigator. |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|