ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - HTML Editor - Server side

Obout.Ajax.UI.HTMLEditor.Popups.OkCancelPopup abstract class

 Inheritance Hierarchy

<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor.Popups" TagPrefix="obout" %>

Base class for all popups in Obout.Ajax.UI.HTMLEditor.Popups namespace that have "OK" and "Cancel" buttons in the bottom.

Public properties

Name Description
propertyAdditionalCss String. Gets or sets comma separated paths of additional CSS files for this popup. (Inherited from Popup.)
propertyAutoDimensions Bool sealed. Gets a value indicating whether the size of the popup is determining automatically. (Inherited from Popup.)
Always true.
propertyClientID String. Gets the server control identifier generated by ASP.NET. (Inherited from Control.)
propertyCssPath String. Gets or sets a style file path. (Inherited from Popup.)
By default embedded CSS file is used.
propertyID String. Gets or sets the programmatic identifier assigned to the server control. (Inherited from Control.)

Protected properties

Name Description
propertyAttachedToButton Bool overridable. Gets a value indicating whether the popup is 'attached' to a button called this popup. (Inherited from Popup.)
Default true.
propertyAutoClose Bool sealed. Gets a value indicating whether the popup is closed on click outside it. (Inherited from Popup.)
Always false.
propertyClientControlType String overridable. Gets the script type to use for the Control. (Inherited from Popup.)
propertyContent Collection<Control>. Gets collection of controls included into the popup. (Inherited from Popup.)
propertyDefaultTitle String overridable. Gets the popup title if not found in Localization. (Inherited from Popup.)
Default String.Empty .
propertyScriptPath String overridable. Gets the path of the script file where the associated script type is defined. (Inherited from Popup.)

Protected methods

Name Description
propertyOkCancelFillContent() Void abstract Fills content of the popup (top and bottom of the popup are already filled).
This method must be overridden in the derived class.

Example (from AnchorProperties):

protected override void OkCancelFillContent()
   Table table = new Table();
   HtmlGenericControl holder;
   table.Attributes.Add("border", "0");
   table.Attributes.Add("cellspacing", "0");
   table.Attributes.Add("cellpadding", "2");
   TableRow row;
   TableCell cell;
   if (AnchorName != null)
      row = new TableRow();
      holder = new HtmlGenericControl("span");
      cell = new TableCell();
      cell.HorizontalAlign = HorizontalAlign.Left;
      holder.Controls.Add(new LiteralControl(GetField("Name",
                                                                      "Anchor name")));
      cell.Controls.Add(new LiteralControl(":"));
      cell = new TableCell();
      cell.HorizontalAlign = HorizontalAlign.Left;

"Not only Obout's tool's great, your support is wonderful too."

Anish Bishen
Trane Inc.

Random testimonial   All testimonials