AutoPostBack Refreshes to Top of Page


When you have form elements that have AutoPostBack = TRUE, it usually will take the visitor back to the top of the page when executed.

To keep the page at it’s current spot add the following to the web.config:

<configuration>
<system.web>
<pages smartNavigation="true">
</system.web>
</configuration> 

This may be deprecated and a new way is available. Mainly works in IE and may cause problems when using javascript and dhtml scripts as they will not be rendered again while using smartnavigation according to another blog.

See SetFocus

Advertisements

~ by worldcrossings on July 23, 2010.

One Response to “AutoPostBack Refreshes to Top of Page”

  1. it take the contol at bottom..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: