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

Working with Client-Side Script in Window for ASP.NET AJAX

Window for ASP.NET AJAX has a very rich client-side object model as it is similar to the object model in the server-side control.

When a C1Window control is rendered, an instance of the client-side dialog window will be created automatically. This means that you can enjoy the convenience of accessing any property and method of the C1Window control without having to postback to the server.

For example, suppose a C1Window control with name C1Window1 is hosted on Web page; when the page is rendered, a corresponding client-side dialog window object will be created. Use the following syntax to get the client-side object on a Web page:

$get("C1Window1").control

OR

$find("C1Window1")

By using Window for ASP.NET AJAX's client-side code, you can implement many features in your Web page without the need to take up time by sending information to the Web server. Thus, using client-side code can increase the efficiency of your Web site. For more information about the C1Window control's client-side code, see Client-Side Tasks.


Dialog Window Client-Side Methods

Dialog Window Client-Side Properties

Client-Side Events


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