ScriptVariables.AddDynamicValue

Adds the dynamic value of a control or any object's property that is picked up just before rendering.

This allows you to specify a given control or object's value to added to the client object with the specified property value set on the JavaScript object and have that value be picked up just before rendering. This is useful so you can do all client object declarations up front in one place regardless of where the values are actually set.

Dynamic values are retrieved with Reflection so this method is necessarily slower than direct assignment.

public void AddDynamicValue( string variableName,
	object control,
	string property );

Parameters

variableName

control

property


See also:

Class ScriptVariables


  Last Updated: 7/15/2008 | © West Wind Technologies, 2008