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

foxpro
foxpro
* ** 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, 2025 • Updated: 2025-03-12
Comment or report problem with topic