EditLive! 9 Documentation : EnableViewState Property (ASP.NET)

This property specifies whether EditLive! maintains its view state between HTTP Posts. If set to true, EditLive! will be repopulated with the relevant data from the form submission. When set to true the data from the form submission will override any program settings of the EditLive! content. When set to false, the content of EditLive! is set to content specified programmatically or, if no content is specified programmatically, the content of EditLive! is set to the original content as specified in the instantiating server control tag.

This property only applies when using the ASP.NET Server Control, distributed with the ASP.NET SDK, to integrate EditLive!.

Syntax

ASP.NET
prefix:EditLiveJava EnableViewState = blnViewState

Parameters

blnViewState

A boolean indicating whether EditLive! should preserve the view state between HTTP Posts.

The default value is true.

Examples

The following code will cause EditLive! to not preserve the view state between HTTP Posts.

ASP.NET Server Control
<elj:EditLiveJava
  ...
  EnableViewState="false" 
  ...
/>

Remarks

This property defaults to true.

When set to true, the data from the form submission will override any programmatic setting of the content of EditLive!.

When set to false, the content of EditLive! is set to content specified programmatically. If no content is specified programmatically, the content of EditLive! is set to the original content as specified in the instantiating server control tag.