Client-Side Properties
The following conventions are used when accessing the client object properties:
• Server properties on the client are implemented as a pair of Get- and Set- methods.
• Method names must start with "get_" (Get-method) and "set_" (Set-method) followed with the server property name. The first letter of the server property name must be lowercase (camel case).
For example in the code below the C#, Visual Basic, and JavaScript examples are equivalent:
Dim s As String = C1Slider1.ToolTip
C1Slider1.ToolTip = s
• C#
string s = C1Slider1.ToolTip;
C1Slider1.ToolTip = s;
var dialog = $get("C1Slider1").control;
var s = slider.get_toolTip();
slider.set_toolTip(s);
For an example of setting the Length property at run time, see Setting the Slider's Length at Run Time.
|