Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
PagesSection Class
 RenderAllHiddenFieldsAtTopOfForm Pr...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
PagesSection..::.RenderAllHiddenFieldsAtTopOfForm Property

Gets or sets a value that indicates whether all system-generated hidden fields are rendered at the top of the form.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)
Visual Basic (Declaration)
<ConfigurationPropertyAttribute("renderAllHiddenFieldsAtTopOfForm", DefaultValue := True)> _
Public Property RenderAllHiddenFieldsAtTopOfForm As Boolean
Visual Basic (Usage)
Dim instance As PagesSection
Dim value As Boolean

value = instance.RenderAllHiddenFieldsAtTopOfForm

instance.RenderAllHiddenFieldsAtTopOfForm = value
C#
[ConfigurationPropertyAttribute("renderAllHiddenFieldsAtTopOfForm", DefaultValue = true)]
public bool RenderAllHiddenFieldsAtTopOfForm { get; set; }
Visual C++
[ConfigurationPropertyAttribute(L"renderAllHiddenFieldsAtTopOfForm", DefaultValue = true)]
public:
property bool RenderAllHiddenFieldsAtTopOfForm {
    bool get ();
    void set (bool value);
}
JScript
public function get RenderAllHiddenFieldsAtTopOfForm () : boolean
public function set RenderAllHiddenFieldsAtTopOfForm (value : boolean)

Property Value

Type: System..::.Boolean
true if system-generated hidden fields are rendered at the top of the form; otherwise, false. The default is true.

You can use the RenderAllHiddenFieldsAtTopOfForm property to specify that some system-generated hidden fields are rendered at the end of the form.

In versions of ASP.NET earlier than the .NET Framework 3.5 SP1, ASP.NET renders some hidden fields (for example, __VIEWSTATE) at the top of the form. Other hidden fields (for example, __EVENTVALIDATION) are rendered near the bottom of the form, just before the closing </div> tag. By default, in ASP.NET 3.5 SP1, all system-generated hidden fields are rendered at the top of the page. This makes sure that the information in these fields is sent to the server even if a postback is performed before the page has finished loading. If RenderAllHiddenFieldsAtTopOfForm is set to false, performing a postback before the page has finished loading can cause an "Invalid postback or callback argument" error.

NoteNote:

Although the property name indicates "all hidden fields," user-created hidden fields are not affected by settings for this property.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1, 3.0 SP2, 2.0 SP2
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker