Represents a dialog window.

Namespace:  C1.Web.UI.Controls.C1Window
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
[ToolboxBitmapAttribute(typeof(C1Window), "C1Window.png")]
[ParseChildrenAttribute(true)]
[LicenseProviderAttribute]
[ToolboxDataAttribute("<{0}:C1Window runat="server"></{0}:C1Window>")]
[DesignerAttribute("C1.Web.UI.Design.C1WindowDesigner, C1.Web.UI.Design.2")]
public class C1Window : C1ThemeableControl, INamingContainer, 
	IPostBackDataHandler, IUrlResolutionService, IC1Serializable
Visual Basic
<ToolboxBitmapAttribute(GetType(C1Window), "C1Window.png")> _
<ParseChildrenAttribute(True)> _
<LicenseProviderAttribute> _
<ToolboxDataAttribute("<{0}:C1Window runat="server"></{0}:C1Window>")> _
<DesignerAttribute("C1.Web.UI.Design.C1WindowDesigner, C1.Web.UI.Design.2")> _
Public Class C1Window _
	Inherits C1ThemeableControl _
	Implements INamingContainer, IPostBackDataHandler, IUrlResolutionService, IC1Serializable

Remarks

C1Window is a pop-up window can be used to display a message, ask for confirmation, user input and so on. C1Window has Client-Side Object Model (CSOM) that mostly repeats the Server-Side Object Model. This means methods and read or write properties may be called on the client side like on the server side. To access CSOM, use this syntax: <ClientID>.control.

Examples

The example below demonstrates how to get and show a dialog window via JavaScript.
Copy CodeC#
<script type="text/javascript">
var dialog = $get("C1Window1").control;
dialog.show();
</script>
By default C1Window is hidden on the Page. To get a dialog window to be visible on load, set the ShowOnLoad to True. There are two modes of dialog boxes: modal and modeless. To show a dialog in modeless mode call show(), to show a dialog in modal mode call showModal(). C1Window requires that Microsoft AJAX Extentions be installed and a ScriptManager is on the page. Microsoft AJAX Extentions can be found at http://ajax.asp.net/. For more information about Microsoft ASP.NET AJAX Extensions, see Microsoft's ASP.Net AJAX Web site.

Inheritance Hierarchy

System..::..Object
  System.Web.UI..::..Control
    System.Web.UI.WebControls..::..WebControl
      C1ThemeableControl
        C1.Web.UI.Controls.C1Window..::..C1Window

See Also