ComponentOne Window for ASP.NET AJAX: Working with Client-Side Script in Window for ASP.NET AJAX > Dialog Window Client-Side Properties

Dialog Window 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.

For example in the code below the C#, Visual Basic, and JavaScript examples are equivalent:

      Visual Basic

Dim s As String = C1Window1.Text

C1Window1.Text = s

      C#

string s = C1Window1.Text;

C1Window1.Text = s;

      JavaScript

var dialog = $get("C1Window1").control;

var s = dialog.get_text();

dialog.set_text(s);

For an example of setting the Text property at run time, see Adding a New Title to the Caption Bar at Run Time.


Caption Button Client-Side Methods


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.