ASP.NET 3.5 and above only

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

Obout.Ajax.UI.HTMLEditor.Popups.UploadFilePopup class

 Inheritance Hierarchy

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

The popup of this type can be opened from the popup of FileBrowser type for uploading a new file to the managed folder.

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.
propertyFileUpload FileUpload. Gets inner FileUpload control, can be used when UseOboutFileUpload property is set to true.
propertyID String. Gets or sets the programmatic identifier assigned to the server control. (Inherited from Control.)
propertyOnClientDuplicate String. Gets or sets the name of client-side function(handler) executed when trying to upload a file with a name that already exists in the current folder.
This handler is added to the client-side event duplicate, see Client-Side.


<%@ Register Assembly="Obout.Ajax.UI" TagPrefix="obout"
Namespace="Obout.Ajax.UI.HTMLEditor" %>
<%@ Register Assembly="Obout.Ajax.UI" TagPrefix="obout"
Namespace="Obout.Ajax.UI.HTMLEditor.Popups" %>
<script type="text/JavaScript">
onDuplicate(sender, args) {
      args.set_cancel(!confirm("To replace the existing '"
+ args.get_fileName() + "' file?"));
<obout:PopupHolder runat="server" ID="popupHolder"
obout:UploadFilePopup runat="server"
OnClientDuplicate="onDuplicate" />
propertyShowDescriptionField Bool. Gets or sets a value indicating whether to render 'Description' field in the popup.
Default true.
propertyUploadErrorMessage String. Gets the text for an alert window shown when upload error occurs.
propertyUseOboutFileUpload Bool. Gets a value indicating whether to use obout FileUpload control.
Default true.

Protected properties

Name Description
propertyAttachedToButton Bool sealed. Gets a value indicating whether the popup is 'attached' to a button called this popup. (Inherited from Popup.)
Always false.
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 "Upload a file".
propertyDescription HtmlGenericControl overridable. Gets the input control associated with the "Description" popup's property.
propertyLocation HtmlGenericControl overridable. Gets the input control associated with the "Location" popup's property.
propertyScriptPath String overridable. Gets the path of the script file where the associated script type is defined. (Inherited from Popup.)

"I'd just like to thank you for the awesome work that your team has done in creating all of the ASP.NET tools. They are easy to work with and are the best that I have found."

Roy Williams

Random testimonial   All testimonials