wwWebControl::PreserveProperty

PreserveProperty is used to save property values between PostPacks using ViewState.

This method lets you easily persist a control's property value in ViewState automatically. Note that the value persists only on the immediate PostBack so if you always want to persist a property you should put the call to PreserveProperty into the OnLoad() or other event that ALWAYS fires.

o.PreserveProperty(lcProperty)

Parameters

lcProperty

Example

*** Tell WWWC to track properties in viewstate
this.btnShowPanel.PreserveProperty("text")
this.btnShowPanel.PreserveProperty("forecolor")
this.panContainer.PreserveProperty("visible")
this.ErrorDisplay.PreserveProperty("text")
this.radWebTool.PreserveProperty("visible")
this.lstWebTool.PreserveProperty("visible")

See also:

Class wwWebControl

© West Wind Technologies, 1996-2024 • Updated: 10/09/05
Comment or report problem with topic