New Features of NET 2005
Maintainscrollpositiononpostback
The following is an explanation of msdn.
Pagessection. maintainscrollpositiononpostback attribute
Note: This attribute is added in. NET Framework 2.0.
Gets or sets a value that indicates whether Page scrolling should be maintained during the return process from the server.
Namespace: system. Web. Configuration
ProgramSet: system. Web (in system. Web. dll)
Syntax
C #
Public bool maintainscrollpositiononpostback {Get; set ;}
Attribute Value
True if the page scroll position should be maintained after sending the API; otherwise, false. The default value is false.
Of course, this attribute can also be set to the pages element under system. Web in Web. config. < Pages
Buffer = "[True | false]"
Enableeventvalidation = "[True | false]"
Enablesessionstate = "[True | false | readonly]"
Enableviewstate = "[True | false]"
Enableviewstatemac = "[True | false]"
Smartnavigation = "[True | false]"
Autoeventwireup = "[True | false]"
Pagebasetype = "Typename, assembly"
Usercontrolbasetype = "Typename"
Validaterequest = "[True | false]"
Masterpagefile = "File path"
Theme = "String"
Stylesheettheme = "String"
Maxpagestatefieldlength = "Number"
Compilationmode = "[Always | auto | never]"
Pageparserfiltertype = "String"
Viewstateencryptionmode = "[Always | auto | never]"
Maintainscrollpositiononpostback = "[True | false]"
Asynctimeout = "Number"
>
< Controls > </ Controls >
< Namespaces > </ Namespaces >
< Tagmapping > </ Tagmapping >
</ Pages >
For more information, see
Http://msdn2.microsoft.com/zh-cn/library/system.web.configuration.pagessection.maintainscrollpositiononpostback (vs.80). aspx # mtps_dropdownfiltertext
And
Http://msdn2.microsoft.com/zh-cn/library/950xf363 (vs.80). aspx
Si GuiArticle:
Http://blog.joycode.com/saucer/archive/2005/09/12/63310.aspx