PagesSection.RenderAllHiddenFieldsAtTopOfForm Propriedade

Definição

Obtém ou define um valor que indica se todos os campos ocultos gerados pelo sistema são renderizados na parte superior do formulário.Gets or sets a value that indicates whether all system-generated hidden fields are rendered at the top of the form.

public:
 property bool RenderAllHiddenFieldsAtTopOfForm { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("renderAllHiddenFieldsAtTopOfForm", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool RenderAllHiddenFieldsAtTopOfForm { get; set; }
[<System.Configuration.ConfigurationProperty("renderAllHiddenFieldsAtTopOfForm", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.RenderAllHiddenFieldsAtTopOfForm : bool with get, set
Public Property RenderAllHiddenFieldsAtTopOfForm As Boolean

Valor da propriedade

Boolean

true se os campos ocultos gerados pelo sistema forem renderizados na parte superior do formulário; caso contrário, false.true if system-generated hidden fields are rendered at the top of the form; otherwise, false. O padrão é true.The default is true.

Atributos

Comentários

Você pode usar a RenderAllHiddenFieldsAtTopOfForm propriedade para especificar que alguns campos ocultos gerados pelo sistema sejam renderizados no final do formulário.You can use the RenderAllHiddenFieldsAtTopOfForm property to specify that some system-generated hidden fields are rendered at the end of the form.

Em versões do ASP.NET anteriores ao .NET Framework 3,5 SP1, o ASP.NET renderiza alguns campos ocultos (por exemplo, __VIEWSTATE ) na parte superior do formulário.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. Outros campos ocultos (por exemplo, __EVENTVALIDATION ) são renderizados próximo à parte inferior do formulário, logo antes da marca de fechamento </div> .Other hidden fields (for example, __EVENTVALIDATION) are rendered near the bottom of the form, just before the closing </div> tag. Por padrão, no ASP.NET 3,5 SP1, todos os campos ocultos gerados pelo sistema são renderizados na parte superior da página.By default, in ASP.NET 3.5 SP1, all system-generated hidden fields are rendered at the top of the page. Isso garante que as informações nesses campos sejam enviadas ao servidor, mesmo se um postback for executado antes da conclusão do carregamento da página.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. Se RenderAllHiddenFieldsAtTopOfForm é definido como false , executar um postback antes que a página tenha terminado o carregamento pode causar um erro "postback inválido ou argumento de retorno de chamada".If RenderAllHiddenFieldsAtTopOfForm is set to false, performing a postback before the page has finished loading can cause an "Invalid postback or callback argument" error.

Observação

Embora o nome da propriedade indique "todos os campos ocultos", os campos ocultos criados pelo usuário não são afetados pelas configurações dessa propriedade.Although the property name indicates "all hidden fields," user-created hidden fields are not affected by settings for this property.

Aplica-se a