componentone accordion for asp.net wijmohelp.grapecity.com/componentone/pdf/aspnetwebforms/... ·...

129
ComponentOne Upload for ASP.NET Web Forms

Upload: ngokhanh

Post on 07-Apr-2018

229 views

Category:

Documents


0 download

TRANSCRIPT

ComponentOne

Upload for ASP.NET Web Forms

Copyright © 1987-2015 GrapeCity, Inc. All rights reserved.

ComponentOne, a division of GrapeCity

201 South Highland Avenue, Third Floor

Pittsburgh, PA 15206 USA

Website: http://www.componentone.com

Sales: [email protected]

Telephone: 1.800.858.2739 or 1.412.681.4343 (Pittsburgh, PA USA Office)

Trademarks

The ComponentOne product name is a trademark and ComponentOne is a registered trademark of GrapeCity, Inc.

All other trademarks used herein are the properties of their respective owners.

Warranty

ComponentOne warrants that the media on which the software is delivered is free from defects in material and

workmanship, assuming normal use, for a period of 90 days from the date of purchase. If a defect occurs during this

time, you may return the defective media to ComponentOne, along with a dated proof of purchase, and

ComponentOne will replace it at no charge. After 90 days, you can obtain a replacement for the defective media by

sending it and a check for $25 (to cover postage and handling) to ComponentOne.

Except for the express warranty of the original media on which the software is delivered is set forth here,

ComponentOne makes no other warranties, express or implied. Every attempt has been made to ensure that the

information contained in this manual is correct as of the time it was written. ComponentOne is not responsible for

any errors or omissions. ComponentOne’s liability is limited to the amount you paid for the product. ComponentOne

is not liable for any special, consequential, or other damages for any reason.

Copying and Distribution

While you are welcome to make backup copies of the software for your own use and protection, you are not

permitted to make copies for the use of anyone else. We put a lot of time and effort into creating this product, and

we appreciate your support in seeing that it is used by licensed users only.

Table of Contents Overview ....................................................................................................................................... 6

Help with ASP.NET Web Forms Edition .................................................................................... 6

Key Features.................................................................................................................................. 6

Quick Start .................................................................................................................................... 7

Step 1 of 4: Create the Project and add C1Upload ................................................................... 7

Step 2 of 4: Show an Alert When Upload Completes ............................................................... 9

Step 3 of 4: Enable Large File Size ............................................................................................. 9

Step 4 of 4: Upload the Files ................................................................................................... 10

Design-Time Support .................................................................................................................. 11

Smart Tag ................................................................................................................................ 11

Context Menu ......................................................................................................................... 13

Appearance ................................................................................................................................. 13

Built-in Wijmo Themes ........................................................................................................... 13

ThemeRoller Overview ........................................................................................................... 14

CSS Selectors ........................................................................................................................... 15

Task-Based Help .......................................................................................................................... 16

Implementing an Anti-Virus File Scan in C1Upload ................................................................ 16

Showing an Uploaded Image .................................................................................................. 17

Working with the Client-Side ...................................................................................................... 18

Client-Side Events ................................................................................................................... 19

Client-Side Reference .................................................................................................................. 20

Using the Wijmo CDN ............................................................................................................. 20

C1.Web.Wijmo.Controls.4 Assembly .......................................................................................... 21

Namespaces ............................................................................................................................ 21

C1.Web.Wijmo.Controls Namespace.................................................................................. 21

Overview ......................................................................................................................... 21

Classes ............................................................................................................................. 22

C1BaseStateManager .................................................................................................. 22

Overview ................................................................................................................. 23

Members ................................................................................................................. 23

C1TargetControlBase .................................................................................................. 23

Overview ................................................................................................................. 24

Members ................................................................................................................. 25

Methods .................................................................................................................. 30

GetPropertyValue<V> Method ........................................................................... 31

GetScriptDescriptors Method ............................................................................. 32

GetScriptReferences Method ............................................................................. 32

RegisterDesignTimeStyleSheet Method ............................................................. 33

SetPropertyValue<V> Method ............................................................................ 34

Properties ................................................................................................................ 34

CDNDependencyPaths Property ......................................................................... 38

CDNPath Property ............................................................................................... 38

DisplayVisible Property ....................................................................................... 39

EnableCombinedJavaScripts Property ................................................................ 40

Enabled Property ................................................................................................ 41

Theme Property .................................................................................................. 41

ThemeSwatch Property ...................................................................................... 42

UseCDN Property ................................................................................................ 43

WijmoControlMode Property ............................................................................. 44

WijmoCssAdapter Property ................................................................................ 45

Structures ........................................................................................................................ 46

PointF .......................................................................................................................... 46

Overview ................................................................................................................. 47

Members ................................................................................................................. 48

PointF Constructor .................................................................................................. 49

Methods .................................................................................................................. 50

Equals Method .................................................................................................... 50

GetHashCode Method ........................................................................................ 51

Properties ................................................................................................................ 51

X Property ........................................................................................................... 51

Y Property ........................................................................................................... 52

Fields ....................................................................................................................... 53

Empty Field ......................................................................................................... 53

Operators ................................................................................................................ 54

Equality Operator ................................................................................................ 54

Inequality Operator ............................................................................................. 54

C1.Web.Wijmo.Controls.C1Upload Namespace ................................................................. 55

Overview ......................................................................................................................... 55

Classes ............................................................................................................................. 56

C1FileInfo .................................................................................................................... 56

Overview ................................................................................................................. 57

Members ................................................................................................................. 57

C1FileInfo Constructor ............................................................................................ 58

Methods .................................................................................................................. 59

Delete Method .................................................................................................... 59

GetStream Method ............................................................................................. 60

SaveAs Method ................................................................................................... 60

SaveAs(String) Method ................................................................................... 61

SaveAs(String,Boolean) Method ..................................................................... 61

Properties ................................................................................................................ 62

ContentType Property ........................................................................................ 62

Extension Property .............................................................................................. 63

FileName Property .............................................................................................. 63

Size Property ....................................................................................................... 64

TempFileName Property ..................................................................................... 64

C1FileInfoCollection .................................................................................................... 64

Overview ................................................................................................................. 65

Members ................................................................................................................. 66

C1FileInfoCollection Constructor ............................................................................ 67

Methods .................................................................................................................. 67

Add Method ........................................................................................................ 68

Contains Method ................................................................................................ 69

IndexOf Method .................................................................................................. 69

Insert Method ..................................................................................................... 70

Remove Method ................................................................................................. 71

Properties ................................................................................................................ 71

Item Property ...................................................................................................... 72

C1Upload ..................................................................................................................... 72

Overview ................................................................................................................. 73

Members ................................................................................................................. 74

C1Upload Constructor............................................................................................. 82

Properties ................................................................................................................ 82

Accept Property .................................................................................................. 87

AccessKey Property ............................................................................................. 88

AutoSubmit Property .......................................................................................... 89

EnableSWFUpload Property ................................................................................ 89

EnableSWFUploadOnIE Property ........................................................................ 90

IsSeparatorProgress Property ............................................................................. 90

Localization Property .......................................................................................... 91

MaximumFiles Property ...................................................................................... 91

MaximumFileSize Property ................................................................................. 92

OnClientChange Property ................................................................................... 93

OnClientComplete Property ................................................................................ 93

OnClientProgress Property ................................................................................. 94

OnClientTotalComplete Property ....................................................................... 95

OnClientTotalProgress Property ......................................................................... 96

OnClientTotalUpload Property ........................................................................... 97

OnClientUpload Property .................................................................................... 97

OnClientValidatedFile Property .......................................................................... 98

ShowUploadedFiles Property .............................................................................. 99

TargetFolder Property ....................................................................................... 100

TempFolder Property ........................................................................................ 100

ValidFileExtensions Property ............................................................................ 101

ValidMimeTypes Property ................................................................................ 102

Events .................................................................................................................... 103

ValidatingFile Event........................................................................................... 103

LocalizationOption .................................................................................................... 104

Overview ............................................................................................................... 105

Members ............................................................................................................... 105

LocalizationOption Constructor ............................................................................ 106

Properties .............................................................................................................. 106

Cancel Property ................................................................................................. 107

CancelAll Property............................................................................................. 107

Upload Property ................................................................................................ 108

UploadAll Property ............................................................................................ 108

UploadFiles Property......................................................................................... 109

UploadedFileEventArgs ............................................................................................. 109

Overview ............................................................................................................... 110

Members ............................................................................................................... 110

Properties .............................................................................................................. 111

UploadedFile Property ...................................................................................... 111

UploadModule .......................................................................................................... 112

Overview ............................................................................................................... 112

Members ............................................................................................................... 113

UploadModule Constructor .................................................................................. 113

UploadProgress ......................................................................................................... 114

Overview ............................................................................................................... 114

Members ............................................................................................................... 115

Properties .............................................................................................................. 115

Active Property ................................................................................................. 116

CurrentFile Property ......................................................................................... 117

EllapsedTime Property ...................................................................................... 117

IsValid Property ................................................................................................. 118

Message Property ............................................................................................. 118

Progress Property ............................................................................................. 118

ReceivedBytes Property .................................................................................... 119

RemainingTime Property .................................................................................. 119

Speed Property ................................................................................................. 120

TotalBytes Property .......................................................................................... 120

UploadProgressHandler ............................................................................................ 121

Overview ............................................................................................................... 121

Members ............................................................................................................... 122

UploadProgressHandler Constructor .................................................................... 122

ValidateFileEventArgs ............................................................................................... 123

Overview ............................................................................................................... 123

Members ............................................................................................................... 124

Properties .............................................................................................................. 125

IsValid Property ................................................................................................. 125

Message Property ............................................................................................. 125

Delegates ...................................................................................................................... 126

UploadedFileEventHandler ....................................................................................... 126

ValidateFileEventHandler ......................................................................................... 127

Overview Upload for ASP.NET Web Forms provides a simple and reliable way to upload files and

streams to the server.

Help with ASP.NET Web Forms Edition Getting Started

For information on installing ComponentOne Studio ASP.NET Web Forms Edition, licensing,

technical support, namespaces and creating a project with the control, please visit Getting

Started with ASP.NET Web Forms Edition.

Key Features The following are some of the main features of Upload for ASP.NET Web Forms that you may

find useful:

Multi-file Upload

Upload multiple files at once, and set restrictions on how many files can be uploaded at

once.

Upload Large Files

You can upload files with a combined size of up to 2GB.

Automatic File Storing

Files are first uploaded to TempFolder and will be moved to the TargetFolder if they

met the required conditions. For example, valid file extensions, the allowed MIME type,

the allowed maximum file size, or custom validating logic.

Upload Progress Bar

Upload for ASP.NET Web Forms provides a light-weight progress bar, but you can easily

provide your own progress UI by reading the client-side upload progress, which

provides rich information for current uploading states.

Flexible Upload Triggers

Upload for ASP.NET Web Forms provides flexible trigger options that allow you to

control when to submit the files to server.

Reduces Server Load

Upload for ASP.NET Web Forms uses HttpHandler to read the file data package

transmitted from client to server. File data is saved based on chucks, which do not

occupy much server memory.

Theming

With just a click of the SmartTag, change the button's look by selecting one of the 6

premium themes (Arctic, Midnight, Aristo, Rocket, Cobalt, and Sterling). Optionally, use

ThemeRoller from jQuery UI to create a customized theme!

CSS Support

Use a cascading style sheet (CSS) style to define custom skins. CSS support allows you

to match the upload control to your organization's standards.

See Also Quick Start

Quick Start In this quick start you will learn how to use the C1Upload control so you can do the following:

Add multiple files to C1Upload.

Use the totalComplete client-side method to show an alert when all files are uploaded.

Enable large file sizes up to 100MB.

See Also Step 1 of 4: Create the Project and add C1Upload

Step 2 of 4: Show an Alert When Upload Completes

Step 3 of 4: Enable Large File Size

Step 4 of 4: Upload the Files

Step 1 of 4: Create the Project and add

C1Upload

1. Create a new ASP.NET Web site.

2. Click the Design tab to enter the Design view.

3. In the Visual Studio Toolbox, double-click the C1Upload icon to add the control to your

page.

The C1Upload control gets registered in web.config file.

Note: If your project is hosted on a server, you may need to register your control manually

in the <system.web> node of your web.config file.

If you need to register your control manually, follow the steps below.

1. Open the Web.config file located in your Source Explorer.

2. If the following markup does not appear in the <system.web> node, add the

following markup to your file:

HTML Copy Code

<httpHandlers>

<add path="C1UploadProgress.axd" verb="*"

type="C1.Web.Wijmo.Controls.C1Upload.UploadProgressHandler,C1.Web.Wijmo.Controls.4"

/>

</httpHandlers>

<httpModules>

<add name="C1UploadModule"

type="C1.Web.Wijmo.Controls.C1Upload.UploadModule,C1.Web.Wijmo.Controls.4" />

</httpModules>

<compilation debug="true" targetFramework="4.0">

<assemblies>

<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral,

PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.Design, Version=4.0.0.0, Culture=neutral,

PublicKeyToken=B03F5F7F11D50A3A"/>

</assemblies>

</compilation>

3. Add the following additional markup in the <system.webServer> node:

HTML Copy Code

<system.webServer>

<validation validateIntegratedModeConfiguration="false"/>

<modules>

<add name="C1UploadModule"

type="C1.Web.Wijmo.Controls.C1Upload.UploadModule,C1.Web.Wijmo.Controls.4" />

</modules>

<handlers>

<add name="C1UploadProgress" path="C1UploadProgress.axd" verb="*"

type="C1.Web.Wijmo.Controls.C1Upload.UploadProgressHandler,C1.Web.Wijmo.Controls.4"

/>

</handlers>

</system.webServer>

This markup is required as the project is hosted on a server.

4. Select the C1Upload control on the page and in the Properties window, set the

MaximumFiles property to "5" to allow five files to be uploaded at one time.

Step 1 of 4 Completed

In this step, you created an ASP.NET Web site. You also added the configuration items for

C1Upload to the web.config file and set the number of files that can be uploaded at one time.

In the next step, you will use the totalComplete client-side event to show an alert dialog box

when all files have been uploaded.

See Also

Step 2 of 4: Show an Alert When Upload Completes

Step 2 of 4: Show an Alert When Upload

Completes In this step you will use the totalComplete client-side event to show an alert dialog box when all

files have been uploaded.

1. Click the Design tab to enter Design view if you are not already in this view.

2. Select the C1Upload control on the page and in the Properties window, set the

OnClientTotalComplete property to "totalComplete".

3. Click the Source tab to switch to Source view.

4. Within the <asp:Content> tags, add the following markup to assign a JavaScript

function called "totalComplete" to respond when all files have been uploaded:

HTML Copy Code

<script type="text/javascript">

function totalComplete(e, data)

{

alert("Upload Complete!");

}

</script>

Step 2 of 4 Completed

In this step, you used the totalComplete client-side event to show an alert dialog box when all

files have been uploaded. In the next step, you will determine the size of the files that can be

uploaded.

See Also

Step 3 of 4: Enable Large File Size

Step 3 of 4: Enable Large File Size In this step you will set the value of the maxRequestLength and executionTimeout properties

in your web.config file to enable file sizes up to 100MB.

1. Open the Solution Explorer, navigate to the web.config file and open it.

2. Set the MaxRequestLength and executionTimeout values to the following:

<httpRuntime maxRequestLength="102400" executionTimeout="3600" />

The settings for the Web.config file should appear like the following:

[IIS prior to version 7]

<configuration>

...

<system.web>

<httpRuntime maxRequestLength="102400" executionTimeout= "3600"

/>

...

</system.web>

</configuration>

[IIS 7]

<system.webServer>

......

<security >

<requestFiltering>

<requestLimits maxAllowedContentLength="1024000000" />

</requestFiltering>

</security>

</system.webServer>

This configuration enables uploading of files up to 100MB and upload periods up to 1

hour.

Step 3 of 4 Completed

In this step you set the value of the maxRequestLength and executionTimeout properties in

your web.config file to enable file sizes up to 100MB.

See Also

Step 4 of 4: Upload the Files

Step 4 of 4: Upload the Files In this last step you will run your project, add multiple files to C1Upload, and upload the files.

1. Press F5 to run your project.

2. Click Upload files to add a file.

3. Select a file and click Open. You can repeat step 2 and step 3 to upload a total of five

files.

4. Click the Upload or Upload All button to upload the

file(s). The "Upload Complete!" dialog box appears.

Step 4 of 4 Completed

In this step you ran your project, added multiple files to C1Upload, and uploaded the files.

See Also

Design-Time Support

Design-Time Support The following section details each type of support available in Upload for ASP.NET Web

Forms.

Invoking the Tasks Menu

In Visual Studio, the C1Upload control in Upload for ASP.NET Web Forms includes a smart

tag. A smart tag represents a short-cut Tasks menu that provides the most commonly used

properties in a control. You can invoke a control's Tasks menu by clicking on the smart tag ( )

in the upper-right corner of the control. For more information on how to use the smart tag in

Upload for ASP.NET Web Forms, see Upload for ASP.NET Web Forms Smart Tag.

Invoking the Context Menu

You can easily configure the Upload for ASP.NET Web Forms component at design time by

using its associated context menu. For more information, see the Upload for ASP.NET Web

Forms Context Menu.

Showing the Upload for ASP.NET Web Forms Control's Properties

You can access the properties for any of Upload for ASP.NET Web Forms's controls simply by

right-clicking on the control and selecting Properties or by selecting the class from the drop-

down list box of the Properties window.

See Also

Smart Tag

Context Menu

Smart Tag In Visual Studio, each control in Upload for ASP.NET Web Forms includes a smart tag ( ). A

smart tag represents a short-cut Tasks menu that provides the most commonly used properties

in each control.

To access the C1Upload Tasks menu, click the smart tag ( ) in the upper-right corner of the

C1Upload control. This will open the C1Upload Tasks menu.

The C1Upload Tasks menu operates as follows:

Theme

Click the drop-down arrow in the Theme property to select one of the built-in themes

to change the appearance of the control.

Create new theme

The Create new theme option opens ThemeRoller for Visual Studio. This allows you

to customize a theme without leaving your development environment. To find more

information on using ThemeRoller in your application, see ThemeRoller for Visual

Studio.

Use CDN

Check the Use CDN check box to link to the content delivery network to access Wijmo

widgets and cascading style sheets.

CDN path

The CDN path points to the content delivery network where you can access Wijmo

widgets and cascading style sheets.

Use Bootstrap

Selecting the Use Bootstrap option applies Bootstrap theming to your control. To find

more information on using Bootstrap theming in your application, see Bootstrap

Theming.

About

Clicking the About item displays a dialog box, which is helpful in finding the version

number of ASP.NET Web Forms Edition and online resources.

Register in web.config

Clicking on the Register in Web.config item registers the configuration items in the

Web.config for the C1Upload control.

See Also Context Menu

Context Menu The Upload for ASP.NET Web Forms C1Upload control provides a context menu for

additional functionality to use at design time. Right-click the C1Upload control to open the

following context menu:

See Also

Appearance

Appearance Change the C1Upload control's look by selecting one of the six premium themes (Arctic,

Midnight, Aristo, Rocket, Cobalt, and Sterling). Or you can use ThemeRoller from jQuery UI to

create your own customized theme!

See Also

Built-in Wijmo Themes

CSS Selectors

Built-in Wijmo Themes C1Upload for ASP.NET Web Forms provides six built-in themes to automatically format the

control. The themes include the following: arctic, aristo, cobalt, midnight, rocket, and

sterling.

arctic

The following image displays the arctic theme:

aristo

The following image displays the aristo theme. This is the default format for the C1Upload

control:

cobalt

The following image displays the cobalt theme:

midnight

The following image displays the midnight theme:

rocket

The following image displays the rocket theme:

sterling

The following image displays the sterling theme:

ThemeRoller Overview One of the most convenient features of Wijmo is its ThemeRoller compatibility. ThemeRoller is a

Web application for creating unique jQueryUI themes to skin your Web app's widgets. With its

simple interface and WYSIWYG preview, you can create a skin for all of your Wijmo widgets and

other ThemeRoller-compatible widgets in less time than it would take to open a graphic editor.

We can find the ThemeRoller Web app at http://jqueryui.com/themeroller/. Once you've arrived

at the app, take a gander at the column on the left-hand side of the page and observe that it

holds three tabs: Roll Your Own, Gallery, and Help.

The Roll Your Own Tab

Roll Your Own is where the magic happens. From this tab, we have the power to tweak your

theme to perfection. To change an element, all we have to do is expand a node and get to

work.

The Gallery Tab

Clicking the Gallery contains a list and preview of ThemeRoller's premium themes. From here,

we can preview, download, or edit one of the ready-made themes in the following ways:

Clicking the snippet view of the theme loads an interactive preview to the right of the

gallery.

Clicking a theme's Download button will take us to the Build Your Download page. If

we want to download one of the premade themes to skin your Wijmo widgets, all we

have to do is navigate to the light orange panel, select our Advanced Theme Settings

and Version, and click Download.

Clicking Edit will load the chosen theme and return us to the Roll Your Own tab, where

we can use the ThemeRoller to tweak the theme.

The Help Tab

Clicking the Help tab will give us a quick reference and special information regarding the

ThemeRoller, such as information for plugin developers and browser support notices.

For more information on using the ThemeRoller and for a short tutorial, visit our Wijmo website.

CSS Selectors You can style any C1Upload elements using CSS styles to make their appearance truly unique.

To make the customization process easier, ComponentOne includes CSS selectors for each of its

six built-in themes. For more information on themes, see Built-in Wijmo Themes.

You can apply general CSS properties such as background, text, font, border, outline, margin,

padding, list, and table to applicable CSS selectors.

For a list of common individual CSS selectors and grouped CSS selectors, select the C1Upload

control in your project, and view the drop-down list next to the CssClass property in the Visual

Studio Properties window. C1Upload CSS selectors start with wijmo-wijupload:

You can combine the individual CSS selectors as a group to make the CSS selector more specific

and strong.

See Also

Working with the Client-Side

Task-Based Help The task-based help section assumes that you are familiar with programming in the Visual

Studio ASP.NET environment and have a general understanding of the Upload for ASP.NET

Web Forms control.

Each topic provides a solution for specific tasks using the C1Upload control. By following the

steps outlined in each topic, you will be able to create projects using a variety of C1Upload

features. It is assumed that you have created a Web project or Web Site project in Visual Studio.

See Also

Implementing an Anti-Virus File Scan in C1Upload

Showing an Uploaded Image

Implementing an Anti-Virus File Scan in

C1Upload In this example, you will set valid file extensions for files that can be uploaded and scan the files

to check to see if they are infected. The upload will be cancelled if a file is infected.

1. Add a Label control to your Web project.

2. Add a C1Upload control to your Web project.

The C1Upload control gets registered in web.config file. If your project is hosted on a

server, you may need to register your control manually in the <system.web> node of

your web.config file, using the steps mentioned within third step of Create the Project

and add C1Upload topic.

3. In the Visual Studio Properties window, next to the TargetFolder property define the

virtual path for Upload directory.

4. Next to the ValidFileExtensions property, enter .doc,.jpg. This will filter the type of files

that can be uploaded.

5. We will subscribe the ValidatingFile event of C1Upload and scan the file being

uploaded. For this, we will run an instance of the AVG application and check whether

the file is infected or not. Note that for this example we are using AVG 10 (free version -

http://www.freeavg.com/?lng=in-en&cmpid=free).

The results of the virus scan are written in a Report.txt which is saved in the Temporary

storage of C1Upload.

Next, we will use a StreamReader object to read the Report.txt file and check whether

it contains a "Found infections" string. If the string is found, then we will cancel the

upload process by calling e.IsValid = False and we will then delete the file being

uploaded using File.Delete().

6. Select View | Code and add the following code to the Default.aspx.cs:

protected void u1_ValidatingFile(object sender, C1.Web.Wijmo.Controls.C1Upload.ValidateFileEventArgs e) { var file = e.UploadedFile; // remove foreach // foreach (C1FileInfo file in C1Upload1.UploadedFiles) try { //validate file // Note: In this arg, "TempFileName" and "FileName" is a read-only property. // you can pass a message in “e.Message” } catch (Exception ex) { //handle exception } }

See Also

Showing an Uploaded Image

Showing an Uploaded Image In this example, the "complete" and "upload" client-side events are used to show the selected

file in an Image control when the image file is uploaded.

1. In Design view of your Web site project, add an Image control to the page.

2. Add a C1Upload control to the page and in the Properties window, set the

MaximumFiles property to 1. This allows only one file to be selected for uploaded.

3. Set the OnClientComplete property to complete.

4. Set the OnClientUpload property to upload.

5. Click the Source tab to switch to Source view and add the following JavaScript markup

after the <cc1:C1Upload /> markup:

6. 7. <script type="text/javascript"> 8. var ImageSrc = ""; 9. function upload(e, args) { 10. ImageSrc = "UploadedFiles/" +

args[0].files[0].name;

11. }

12. function complete(e, args) {

13. $("#<%=Image1.ClientID %>").attr("src",

ImageSrc);

14. }

15. </script>

The complete markup for the project should look similar to this:

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register assembly="C1.Web.Wijmo.Controls.4" namespace="C1.Web.Wijmo.Controls.C1Upload" TagPrefix="cc1" %> <asp:Content ID="HeaderContent" runat="server"

ContentPlaceHolderID="HeadContent"> </asp:Content> <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <%--Add an Image control to the page.--%> <asp:Image ID="Image1" runat="server" /> <%-- Call the "complete" and "upload" client-side events and set the maximum number of files to be uploaded to 1.--%> <wijmo:C1Upload ID="C1Upload1" runat="server" OnClientComplete="complete" OnClientUpload="upload" width="300px" MaximumFiles="1" /> <script type="text/javascript"> var ImageSrc = ""; // Before upload, the image is set to the file that will be saved in the TargetFolder "UploadedFiles" once upload is complete. function upload(e, args) { ImageSrc = "UploadedFiles/" + args[0].files[0].name; } // Once upload is complete, the image file saved in the TargetFolder appears in the Image control. function complete(e, args) { $("#<%=Image1.ClientID %>").attr("src", ImageSrc); } </script> </asp:Content>

When you run the project, click Upload Files and select an image file. Click Upload All, and

when the file is finished uploading, the image appears in the Image control on the page.

Working with the Client-Side The Upload for ASP.NET Web Forms controls have a very rich client-side object model since

most of their members are identical to the members in the server-side control.

When a C1Upload control is rendered, an instance of the client-side control will be created

automatically. This means that you can enjoy the convenience of accessing properties and

methods of the C1Upload controls without having to postback to the server.

Using client-side code, you can implement many features in your Web page without the need

to send information to the Web server, which takes time. Thus, using the client-side object

model can increase the efficiency of your Web site.

See Also

Client-Side Events

Client-Side Events Upload for ASP.NET Web Forms includes several client-side events that allow you to

manipulate C1Upload when an action occurs such as a file being uploaded.

You can use the sever-side properties, listed in the Client Side Event table, to specify the name

of the JavaScript function that will respond to a particular client-side event. For example, to

assign a JavaScript function called "Upload" to respond when file is being uploaded, you would

set the OnClientUpload property to "Upload".

The following table lists the events that you can use in your client scripts. These properties are

defined on the server side, but the actual events or the name you declare for each JavaScript

function are defined on the client side.

Event Server-Side Property

Name

Event Name Description

OnClientChange change Occurs when the user selects a file.

OnClientComplete complete Occurs when the file upload is

complete. See Showing an

Uploaded Imagefor an example.

OnClientProgress progress Occurs when the files is uploading.

OnClientTotalComplete totalComplete Occurs when the uploadAll button

is clicked and the file upload is

complete.

OnClientTotalProgress totalProgress Occurs when the uploadAll button

is clicked and the file is uploading.

OnClientTotalUpload totalUpload Occurs when the uploadAll button

is clicked.

OnClientUpload upload Occurs before the file is uploaded.

See Showing an Uploaded

Imagefor an example.

Descriptions and syntax examples for the C1Upload client-side events can be found at

http://wijmo.com/docs/wijmo/.

See Also

Client-Side Events

Client-Side Reference As part of the amazing ComponentOne Web stack, the Wijmo jQuery UI widgets are optimized

for client-side Web development and utilize the power of jQuery for superior performance and

ease of use.

The ComponentOne Wijmo website at http://wijmo.com/widgets/ provides everything you need

to know about Wijmo widgets, including demos and samples, documentation, theming

examples, support and more.

The client-side documentation provides an overview, quick start, options, events, and methods

for each widget. To get started with client-side Web development for Upload for ASP.NET

Web Forms, view the client-side documentation at http://wijmo.com/docs/wijmo/. Note that

the Overview topic for each of the widgets applies mainly to the widget, not to the server-side

ASP.NET Web Forms control.

See Also

Using the Wijmo CDN

Using the Wijmo CDN You can easily load the client-side Wijmo widgets into your web page using a Content Delivery

Network (CDN). CDN makes it quick and easy to use external libraries, and deploy them to your

users. A CDN is a network of computers around the world that host content. Ideally, if you're in

the United States and you access a webpage using a CDN, you'll get your content from a server

based in the US. If you're in India or China, and you access the SAME webpage, the content will

come from a server a little closer to your location.

When web browsers load content, they commonly will check to see if they already have a copy

of the file cached. By using a CDN, you can benefit from this. If a user had previously visited a

site using the same CDN, they will already have a cached version of the files on their machine.

Your page will load quicker since it doesn't need to re-download your support content.

Wijmo has had CDN support from the very beginning. You can find the CDN page at

http://wijmo.com/downloads/cdn/. The markup required for loading Wijmo into your page

looks similar to this:

<!--jQuery References--> <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.7.1.min.js" type="text/javascript"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.17/jquery-ui.min.js" type="text/javascript"></script> <!--Theme--> <link href="http://cdn.wijmo.com/themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" title="rocket-jqueryui" />

<!--Wijmo Widgets CSS--> <link href="http://cdn.wijmo.com/jquery.wijmo-complete.all.2.0.0.min.css" rel="stylesheet" type="text/css" /> <!--Wijmo Widgets JavaScript--> <script src="http://cdn.wijmo.com/jquery.wijmo-open.all.2.0.0.min.js" type="text/javascript"></script> <script src="http://cdn.wijmo.com/jquery.wijmo-complete.all.2.0.0.min.js" type="text/javascript"></script>

In this markup, you'll notice that some of the .js files are labeled as *.min.js. These files have

been minified - in other words, all unnecessary characters have been removed - to make the

pages load faster. You will also notice that there are no references to individual .js files. The

JavaScript for all widgets, CSS, and jQuery references have been combined into one file,

respectively, such as wijmo-complete.2.0.0.min.js. If you want to link to individual .js files, see

the Dependencies topic for each widget.

With the ASP.NET Web Forms Edition controls, you can click the Use CDN checkbox in the

control's Tasks menu and specify the CDN path if you want to access the client-side widgets.

C1.Web.Wijmo.Controls.4 Assembly

Namespaces

C1.Web.Wijmo.Controls Namespace

Overview Classes

Class Description

C1BaseStateManager Base class to support view state management for a server control.

C1TargetControlBase Class to be used as base for the wijmo extenders target controls.

Class to be used as base for the wijmo target controls.

Structures

Structure Description

PointF Represents an ordered pair of float x- and y-coordinates that defines a

point in a two-dimensional plane.

See Also

Reference

C1.Web.Wijmo.Controls.4 Assembly

Classes

C1BaseStateManager Base class to support view state management for a server control.

Object Model

Syntax

Visual Basic (Declaration)

Public MustInherit Class C1BaseStateManager

C#

public abstract class C1BaseStateManager

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1BaseStateManager

See Also

Reference

C1BaseStateManager Members

C1.Web.Wijmo.Controls Namespace

Overview Base class to support view state management for a server control.

Object Model

Syntax

Visual Basic (Declaration)

Public MustInherit Class C1BaseStateManager

C#

public abstract class C1BaseStateManager

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1BaseStateManager

See Also

Reference

C1BaseStateManager Members

C1.Web.Wijmo.Controls Namespace

Members The following tables list the members exposed by C1BaseStateManager.

See Also

Reference

C1BaseStateManager Class

C1.Web.Wijmo.Controls Namespace

C1TargetControlBase Class to be used as base for the wijmo extenders target controls. Class to be used as base for

the wijmo target controls.

Object Model

Syntax

Visual Basic (Declaration)

<WidgetDependenciesAttribute(System.Object[])>

Public MustInherit Class C1TargetControlBase

Inherits System.Web.UI.WebControls.WebControl

C#

[WidgetDependencies(System.Object[])]

public abstract class C1TargetControlBase :

System.Web.UI.WebControls.WebControl

Inheritance Hierarchy

System.Object

System.Web.UI.Control

System.Web.UI.WebControls.WebControl

C1.Web.Wijmo.Controls.C1TargetControlBase

C1.Web.Wijmo.Controls.C1Upload.C1Upload

See Also

Reference

C1TargetControlBase Members

C1.Web.Wijmo.Controls Namespace

Overview Class to be used as base for the wijmo extenders target controls. Class to be used as base for

the wijmo target controls.

Object Model

Syntax

Visual Basic (Declaration)

<WidgetDependenciesAttribute(System.Object[])>

Public MustInherit Class C1TargetControlBase

Inherits System.Web.UI.WebControls.WebControl

C#

[WidgetDependencies(System.Object[])]

public abstract class C1TargetControlBase :

System.Web.UI.WebControls.WebControl

Inheritance Hierarchy

System.Object

System.Web.UI.Control

System.Web.UI.WebControls.WebControl

C1.Web.Wijmo.Controls.C1TargetControlBase

C1.Web.Wijmo.Controls.C1Upload.C1Upload

See Also

Reference

C1TargetControlBase Members

C1.Web.Wijmo.Controls Namespace

Members The following tables list the members exposed by C1TargetControlBase.

Public Properties

Name Description

AccessKey (Inherited from

System.Web.UI.WebControls.WebControl)

AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)

Attributes (Inherited from

System.Web.UI.WebControls.WebControl)

CDNDependencyPaths A string array value specifies all css/js references that

wijmo control depends on.

CDNPath Content Delivery Network path.

ClientID (Inherited from System.Web.UI.Control)

ClientIDMode (Inherited from System.Web.UI.Control)

Controls (Inherited from System.Web.UI.Control)

ControlStyle (Inherited from

System.Web.UI.WebControls.WebControl)

ControlStyleCreated (Inherited from

System.Web.UI.WebControls.WebControl)

CssClass (Inherited from

System.Web.UI.WebControls.WebControl)

DisplayVisible Gets or sets a value that indicates whether a server

control is rendered as UI on the page.

EnableCombinedJavaScripts Enable JavaScripts files combined into one file. In

order to combined enabled, you must register the

WijmoHttpHandler in web.config.

Enabled Overridden. Gets or sets a value indicating whether

the Web server control is enabled.

EnableTheming (Inherited from

System.Web.UI.WebControls.WebControl)

EnableViewState (Inherited from System.Web.UI.Control)

HasAttributes (Inherited from

System.Web.UI.WebControls.WebControl)

Height (Inherited from

System.Web.UI.WebControls.WebControl)

ID (Inherited from System.Web.UI.Control)

NamingContainer (Inherited from System.Web.UI.Control)

Page (Inherited from System.Web.UI.Control)

Parent (Inherited from System.Web.UI.Control)

RenderingCompatibility (Inherited from System.Web.UI.Control)

Site (Inherited from System.Web.UI.Control)

SkinID (Inherited from

System.Web.UI.WebControls.WebControl)

Style (Inherited from

System.Web.UI.WebControls.WebControl)

SupportsDisabledAttribute (Inherited from

System.Web.UI.WebControls.WebControl)

TabIndex (Inherited from

System.Web.UI.WebControls.WebControl)

TemplateControl (Inherited from System.Web.UI.Control)

TemplateSourceDirectory (Inherited from System.Web.UI.Control)

Theme Name of the theme that will be used to style the

widgets. Available embedded themes include: aristo,

midnight, and ui-lightness. Note that only one

theme can be used for the whole page at one time.

Please make sure that all widget extenders have the

same Theme value.

ThemeSwatch A value that indicates the theme swatch of the

control, this property only works when

WijmoControlMode property is Mobile.

ToolTip (Inherited from

System.Web.UI.WebControls.WebControl)

UniqueID (Inherited from System.Web.UI.Control)

UseCDN Determines whether the widget extender must load

client resources from CDN (Content Delivery

Network) path given by property CDNPath.

ValidateRequestMode (Inherited from System.Web.UI.Control)

ViewStateMode (Inherited from System.Web.UI.Control)

Width (Inherited from

System.Web.UI.WebControls.WebControl)

WijmoControlMode A value that indicates mode of the control, whether

it is a mobile or web control. Note that only one

value can be used for the whole website or project.

WijmoCssAdapter Indicates the control applies the theme of JQuery UI

or Bootstrap.

Top

Public Methods

Name Description

ApplyStyle (Inherited from System.Web.UI.WebControls.WebControl)

ApplyStyleSheetSkin (Inherited from System.Web.UI.Control)

CopyBaseAttributes (Inherited from System.Web.UI.WebControls.WebControl)

DataBind (Inherited from System.Web.UI.Control)

Dispose (Inherited from System.Web.UI.Control)

FindControl (Inherited from System.Web.UI.Control)

Focus (Inherited from System.Web.UI.Control)

GetPropertyValue<V> Gets the property value by property name.

GetRouteUrl Overloaded. (Inherited from System.Web.UI.Control)

GetScriptDescriptors When overridden in a derived class, registers the

WidgetDescriptor objects for the control.

GetScriptReferences When overridden in a derived class, registers an additional

script libraries for the extender control.

GetUniqueIDRelativeTo (Inherited from System.Web.UI.Control)

HasControls (Inherited from System.Web.UI.Control)

MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)

RegisterDesignTimeStyleSheet Register design time stylesheet

RenderBeginTag (Inherited from System.Web.UI.WebControls.WebControl)

RenderControl (Inherited from System.Web.UI.Control)

RenderEndTag (Inherited from System.Web.UI.WebControls.WebControl)

ResolveClientUrl (Inherited from System.Web.UI.Control)

ResolveUrl (Inherited from System.Web.UI.Control)

SetPropertyValue<V> Sets the property value by property name.

SetRenderMethodDelegate (Inherited from System.Web.UI.Control)

Top

Public Events

Name Description

DataBinding (Inherited from System.Web.UI.Control)

Disposed (Inherited from System.Web.UI.Control)

Init (Inherited from System.Web.UI.Control)

Load (Inherited from System.Web.UI.Control)

PreRender (Inherited from System.Web.UI.Control)

Unload (Inherited from System.Web.UI.Control)

Top

See Also

Reference

C1TargetControlBase Class

C1.Web.Wijmo.Controls Namespace

Methods For a list of all members of this type, see C1TargetControlBase members.

Public Methods

Name Description

ApplyStyle (Inherited from System.Web.UI.WebControls.WebControl)

ApplyStyleSheetSkin (Inherited from System.Web.UI.Control)

CopyBaseAttributes (Inherited from System.Web.UI.WebControls.WebControl)

DataBind (Inherited from System.Web.UI.Control)

Dispose (Inherited from System.Web.UI.Control)

FindControl (Inherited from System.Web.UI.Control)

Focus (Inherited from System.Web.UI.Control)

GetPropertyValue<V> Gets the property value by property name.

GetRouteUrl Overloaded. (Inherited from System.Web.UI.Control)

GetScriptDescriptors When overridden in a derived class, registers the

WidgetDescriptor objects for the control.

GetScriptReferences When overridden in a derived class, registers an additional

script libraries for the extender control.

GetUniqueIDRelativeTo (Inherited from System.Web.UI.Control)

HasControls (Inherited from System.Web.UI.Control)

MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)

RegisterDesignTimeStyleSheet Register design time stylesheet

RenderBeginTag (Inherited from System.Web.UI.WebControls.WebControl)

RenderControl (Inherited from System.Web.UI.Control)

RenderEndTag (Inherited from System.Web.UI.WebControls.WebControl)

ResolveClientUrl (Inherited from System.Web.UI.Control)

ResolveUrl (Inherited from System.Web.UI.Control)

SetPropertyValue<V> Sets the property value by property name.

SetRenderMethodDelegate (Inherited from System.Web.UI.Control)

Top

See Also

Reference

C1TargetControlBase Class

C1.Web.Wijmo.Controls Namespace

GetPropertyValue<V> Method Gets the property value by property name.

Syntax

Visual Basic (Declaration)

Public Function GetPropertyValue(Of V)( _

ByVal propertyName As System.String, _

ByVal nullValue As V _

) As V

C#

public V GetPropertyValue<V>(

System.string propertyName,

V nullValue

)

Parameters

propertyName

Name of the property.

nullValue

The null value.

Type Parameters

V

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

GetScriptDescriptors Method When overridden in a derived class, registers the WidgetDescriptor objects for the control.

Syntax

Visual Basic (Declaration)

Public Overridable Function GetScriptDescriptors() As

System.Collections.Generic.IEnumerable(Of ScriptDescriptor)

C#

public virtual System.Collections.Generic.IEnumerable<ScriptDescriptor>

GetScriptDescriptors()

Return Value

An enumeration of WidgetDescriptor objects.

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

GetScriptReferences Method When overridden in a derived class, registers an additional script libraries for the extender

control.

Syntax

Visual Basic (Declaration)

Public Overridable Function GetScriptReferences() As

System.Collections.Generic.IEnumerable(Of ScriptReference)

C#

public virtual System.Collections.Generic.IEnumerable<ScriptReference>

GetScriptReferences()

Return Value

An object that implements the System.Collections.IEnumerable interface and that contains

ECMAScript (JavaScript) files that have been registered as embedded resources.

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

RegisterDesignTimeStyleSheet Method The System.Web.UI.HtmlTextWriter object that receives the server control content.

resource name of stylesheet file

Register design time stylesheet

Syntax

Visual Basic (Declaration)

Public Sub RegisterDesignTimeStyleSheet( _

ByVal writer As System.Web.UI.HtmlTextWriter, _

ByVal cssResourceName As System.String _

)

C#

public void RegisterDesignTimeStyleSheet(

System.Web.UI.HtmlTextWriter writer,

System.string cssResourceName

)

Parameters

writer

The System.Web.UI.HtmlTextWriter object that receives the server control content.

cssResourceName

resource name of stylesheet file

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

SetPropertyValue<V> Method Sets the property value by property name.

Syntax

Visual Basic (Declaration)

Public Sub SetPropertyValue(Of V)( _

ByVal propertyName As System.String, _

ByVal value As V _

)

C#

public void SetPropertyValue<V>(

System.string propertyName,

V value

)

Parameters

propertyName

Name of the property.

value

The value.

Type Parameters

V

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

Properties For a list of all members of this type, see C1TargetControlBase members.

Public Properties

Name Description

AccessKey (Inherited from

System.Web.UI.WebControls.WebControl)

AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)

Attributes (Inherited from

System.Web.UI.WebControls.WebControl)

CDNDependencyPaths A string array value specifies all css/js references that

wijmo control depends on.

CDNPath Content Delivery Network path.

ClientID (Inherited from System.Web.UI.Control)

ClientIDMode (Inherited from System.Web.UI.Control)

Controls (Inherited from System.Web.UI.Control)

ControlStyle (Inherited from

System.Web.UI.WebControls.WebControl)

ControlStyleCreated (Inherited from

System.Web.UI.WebControls.WebControl)

CssClass (Inherited from

System.Web.UI.WebControls.WebControl)

DisplayVisible Gets or sets a value that indicates whether a server

control is rendered as UI on the page.

EnableCombinedJavaScripts Enable JavaScripts files combined into one file. In

order to combined enabled, you must register the

WijmoHttpHandler in web.config.

Enabled Overridden. Gets or sets a value indicating whether

the Web server control is enabled.

EnableTheming (Inherited from

System.Web.UI.WebControls.WebControl)

EnableViewState (Inherited from System.Web.UI.Control)

HasAttributes (Inherited from

System.Web.UI.WebControls.WebControl)

Height (Inherited from

System.Web.UI.WebControls.WebControl)

ID (Inherited from System.Web.UI.Control)

NamingContainer (Inherited from System.Web.UI.Control)

Page (Inherited from System.Web.UI.Control)

Parent (Inherited from System.Web.UI.Control)

RenderingCompatibility (Inherited from System.Web.UI.Control)

Site (Inherited from System.Web.UI.Control)

SkinID (Inherited from

System.Web.UI.WebControls.WebControl)

Style (Inherited from

System.Web.UI.WebControls.WebControl)

SupportsDisabledAttribute (Inherited from

System.Web.UI.WebControls.WebControl)

TabIndex (Inherited from

System.Web.UI.WebControls.WebControl)

TemplateControl (Inherited from System.Web.UI.Control)

TemplateSourceDirectory (Inherited from System.Web.UI.Control)

Theme Name of the theme that will be used to style the

widgets. Available embedded themes include: aristo,

midnight, and ui-lightness. Note that only one

theme can be used for the whole page at one time.

Please make sure that all widget extenders have the

same Theme value.

ThemeSwatch A value that indicates the theme swatch of the

control, this property only works when

WijmoControlMode property is Mobile.

ToolTip (Inherited from

System.Web.UI.WebControls.WebControl)

UniqueID (Inherited from System.Web.UI.Control)

UseCDN Determines whether the widget extender must load

client resources from CDN (Content Delivery

Network) path given by property CDNPath.

ValidateRequestMode (Inherited from System.Web.UI.Control)

ViewStateMode (Inherited from System.Web.UI.Control)

Width (Inherited from

System.Web.UI.WebControls.WebControl)

WijmoControlMode A value that indicates mode of the control, whether

it is a mobile or web control. Note that only one

value can be used for the whole website or project.

WijmoCssAdapter Indicates the control applies the theme of JQuery UI

or Bootstrap.

Top

See Also

Reference

C1TargetControlBase Class

C1.Web.Wijmo.Controls Namespace

CDNDependencyPaths Property A string array value specifies all css/js references that wijmo control depends on.

Syntax

Visual Basic (Declaration)

<C1DescriptionAttribute(Key="C1Base.CDNDependencyPaths", Description="A

string array value specifies all css/js references that wijmo control depends

on.")>

<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>

<C1CategoryAttribute("Behavior")>

<System.ComponentModel.DefaultValueAttribute()>

<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria

lizationVisibility.Hidden)>

Public Overridable Property CDNDependencyPaths As System.String()

C#

[C1Description(Key="C1Base.CDNDependencyPaths", Description="A string array

value specifies all css/js references that wijmo control depends on.")]

[System.ComponentModel.RefreshProperties(RefreshProperties.All)]

[C1Category("Behavior")]

[System.ComponentModel.DefaultValue()]

[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationV

isibility.Hidden)]

public virtual System.string[] CDNDependencyPaths {get; set;}

Remarks

Using this property, user can specify the CDN dependencies(such as jQuery, jQuery UI, jQuery

mobile, bootstrap). If some dependencies are set in this property, wijmo controls will find

dependencies path in this property. If found, use the path to load dependency, otherwise, use

the default CDN path. For example, if user wants to specify the dependencies of jQuery and

jQuery UI, he can set the value like this: ["http://ajax.aspnetcdn.com/ajax/jQuery/jquery-

1.11.1.min.js", "http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.1/jquery-ui.js"]

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

CDNPath Property Content Delivery Network path.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria

lizationVisibility.Hidden)>

<C1DescriptionAttribute(Key="C1Base.CDNPath", Description="Content Delivery

Network path.")>

<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>

<C1CategoryAttribute("Behavior")>

<System.ComponentModel.DefaultValueAttribute()>

Public Overridable Property CDNPath As System.String

C#

[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationV

isibility.Hidden)]

[C1Description(Key="C1Base.CDNPath", Description="Content Delivery Network

path.")]

[System.ComponentModel.RefreshProperties(RefreshProperties.All)]

[C1Category("Behavior")]

[System.ComponentModel.DefaultValue()]

public virtual System.string CDNPath {get; set;}

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

DisplayVisible Property Gets or sets a value that indicates whether a server control is rendered as UI on the page.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()>

<C1CategoryAttribute("Behavior")>

<WidgetOptionAttribute()>

<LayoutAttribute(LayoutType.Behavior)>

<C1DescriptionAttribute(Key="C1Controls.DisplayVisible", Description="Gets or

sets a value that indicates whether a server control is rendered as UI on the

page.")>

Public Property DisplayVisible As System.Boolean

C#

[System.ComponentModel.DefaultValue()]

[C1Category("Behavior")]

[WidgetOption()]

[Layout(LayoutType.Behavior)]

[C1Description(Key="C1Controls.DisplayVisible", Description="Gets or sets a

value that indicates whether a server control is rendered as UI on the

page.")]

public System.bool DisplayVisible {get; set;}

Remarks

Note that a server control is created and invisible if DisplayVisible is set to false.

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

EnableCombinedJavaScripts Property Enable JavaScripts files combined into one file. In order to combined enabled, you must register

the WijmoHttpHandler in web.config.

Syntax

Visual Basic (Declaration)

<C1DescriptionAttribute(Key="C1Base.EnableCombinedJavaScripts",

Description="Enable JavaScripts files combined into one file.")>

<C1CategoryAttribute("Behavior")>

<System.ComponentModel.DefaultValueAttribute()>

<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria

lizationVisibility.Hidden)>

Public Overridable Property EnableCombinedJavaScripts As System.Boolean

C#

[C1Description(Key="C1Base.EnableCombinedJavaScripts", Description="Enable

JavaScripts files combined into one file.")]

[C1Category("Behavior")]

[System.ComponentModel.DefaultValue()]

[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationV

isibility.Hidden)]

public virtual System.bool EnableCombinedJavaScripts {get; set;}

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

Enabled Property Gets or sets a value indicating whether the Web server control is enabled.

Syntax

Visual Basic (Declaration)

<C1DescriptionAttribute(Key="C1Base.Enabled", Description="Indicates whether

control is enabled.")>

<WidgetOptionAttribute()>

<C1CategoryAttribute("Behavior")>

<System.ComponentModel.DefaultValueAttribute()>

Public Overrides Property Enabled As System.Boolean

C#

[C1Description(Key="C1Base.Enabled", Description="Indicates whether control

is enabled.")]

[WidgetOption()]

[C1Category("Behavior")]

[System.ComponentModel.DefaultValue()]

public override System.bool Enabled {get; set;}

Property Value

true if control is enabled; otherwise, false. The default is true.

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

Theme Property Name of the theme that will be used to style the widgets. Available embedded themes include:

aristo, midnight, and ui-lightness. Note that only one theme can be used for the whole page at

one time. Please make sure that all widget extenders have the same Theme value.

Syntax

Visual Basic (Declaration)

<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoThemeNameConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")>

<C1CategoryAttribute("Behavior")>

<System.ComponentModel.DefaultValueAttribute()>

<C1DescriptionAttribute(Key="C1Base.Theme", Description="Name of the theme

that will be used to style widgets. Available themes: aristo / midnight / ui-

lightness. Note, only one theme can be used for the whole page at one time.

Please, make sure that all widget extenders have the same Theme value.")>

<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria

lizationVisibility.Hidden)>

<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>

Public Overridable Property Theme As System.String

C#

[TypeConverter("C1.Web.Wijmo.Controls.WijmoThemeNameConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")]

[C1Category("Behavior")]

[System.ComponentModel.DefaultValue()]

[C1Description(Key="C1Base.Theme", Description="Name of the theme that will

be used to style widgets. Available themes: aristo / midnight / ui-lightness.

Note, only one theme can be used for the whole page at one time. Please, make

sure that all widget extenders have the same Theme value.")]

[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationV

isibility.Hidden)]

[System.ComponentModel.RefreshProperties(RefreshProperties.All)]

public virtual System.string Theme {get; set;}

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

ThemeSwatch Property A value that indicates the theme swatch of the control, this property only works when

WijmoControlMode property is Mobile.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria

lizationVisibility.Hidden)>

<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoThemeSwatchConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")>

<C1DescriptionAttribute(Key="C1Base.ThemeSwatch", Description="A value that

indicates the theme swatch of the control, this property only works when

WijmoControlMode property is Mobile.")>

<C1CategoryAttribute("Appearance")>

<System.ComponentModel.DefaultValueAttribute()>

<WidgetOptionAttribute()>

Public Overridable Property ThemeSwatch As System.String

C#

[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationV

isibility.Hidden)]

[TypeConverter("C1.Web.Wijmo.Controls.WijmoThemeSwatchConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")]

[C1Description(Key="C1Base.ThemeSwatch", Description="A value that indicates

the theme swatch of the control, this property only works when

WijmoControlMode property is Mobile.")]

[C1Category("Appearance")]

[System.ComponentModel.DefaultValue()]

[WidgetOption()]

public virtual System.string ThemeSwatch {get; set;}

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

UseCDN Property Determines whether the widget extender must load client resources from CDN (Content

Delivery Network) path given by property CDNPath.

Syntax

Visual Basic (Declaration)

<C1DescriptionAttribute(Key="C1Base.UseCDN", Description="Determines whether

this extender loads client script references from CDN.")>

<System.ComponentModel.DefaultValueAttribute()>

<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria

lizationVisibility.Hidden)>

<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>

<C1CategoryAttribute("Behavior")>

Public Overridable Property UseCDN As System.Boolean

C#

[C1Description(Key="C1Base.UseCDN", Description="Determines whether this

extender loads client script references from CDN.")]

[System.ComponentModel.DefaultValue()]

[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationV

isibility.Hidden)]

[System.ComponentModel.RefreshProperties(RefreshProperties.All)]

[C1Category("Behavior")]

public virtual System.bool UseCDN {get; set;}

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

WijmoControlMode Property A value that indicates mode of the control, whether it is a mobile or web control. Note that only

one value can be used for the whole website or project.

Syntax

Visual Basic (Declaration)

<C1DescriptionAttribute(Key="C1Base.WijmoControlMode", Description="A value

that indicates mode of the control, whether it is a mobile or web control.

Note that only one value can be used for the whole website or project.")>

<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria

lizationVisibility.Hidden)>

<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>

<C1CategoryAttribute("Behavior")>

<System.ComponentModel.DefaultValueAttribute()>

Public Overridable Property WijmoControlMode As WijmoControlMode

C#

[C1Description(Key="C1Base.WijmoControlMode", Description="A value that

indicates mode of the control, whether it is a mobile or web control. Note

that only one value can be used for the whole website or project.")]

[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationV

isibility.Hidden)]

[System.ComponentModel.RefreshProperties(RefreshProperties.All)]

[C1Category("Behavior")]

[System.ComponentModel.DefaultValue()]

public virtual WijmoControlMode WijmoControlMode {get; set;}

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

WijmoCssAdapter Property Indicates the control applies the theme of JQuery UI or Bootstrap.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()>

<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSeria

lizationVisibility.Hidden)>

<C1CategoryAttribute("Behavior")>

<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>

<TypeConverterAttribute("C1.Web.Wijmo.Controls.WijmoCssAdapterConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")>

<C1DescriptionAttribute(Key="C1Base.WijmoCssAdapter", Description="Indicates

the control applies the theme of JQuery UI or Bootstrap.")>

Public Overridable Property WijmoCssAdapter As System.String

C#

[System.ComponentModel.DefaultValue()]

[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationV

isibility.Hidden)]

[C1Category("Behavior")]

[System.ComponentModel.RefreshProperties(RefreshProperties.All)]

[TypeConverter("C1.Web.Wijmo.Controls.WijmoCssAdapterConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")]

[C1Description(Key="C1Base.WijmoCssAdapter", Description="Indicates the

control applies the theme of JQuery UI or Bootstrap.")]

public virtual System.string WijmoCssAdapter {get; set;}

See Also

Reference

C1TargetControlBase Class

C1TargetControlBase Members

Structures

PointF Represents an ordered pair of float x- and y-coordinates that defines a point in a two-

dimensional plane.

Object Model

Syntax

Visual Basic (Declaration)

<TypeConverterAttribute("C1.Web.Wijmo.Controls.PointFConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")>

<System.SerializableAttribute()>

Public Structure PointF

Inherits System.ValueType

C#

[TypeConverter("C1.Web.Wijmo.Controls.PointFConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")]

[System.Serializable()]

public struct PointF : System.ValueType

Inheritance Hierarchy

System.Object

System.ValueType

C1.Web.Wijmo.Controls.PointF

See Also

Reference

PointF Members

C1.Web.Wijmo.Controls Namespace

Overview Represents an ordered pair of float x- and y-coordinates that defines a point in a two-

dimensional plane.

Object Model

Syntax

Visual Basic (Declaration)

<TypeConverterAttribute("C1.Web.Wijmo.Controls.PointFConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")>

<System.SerializableAttribute()>

Public Structure PointF

Inherits System.ValueType

C#

[TypeConverter("C1.Web.Wijmo.Controls.PointFConverter,

C1.Web.Wijmo.Controls.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")]

[System.Serializable()]

public struct PointF : System.ValueType

Inheritance Hierarchy

System.Object

System.ValueType

C1.Web.Wijmo.Controls.PointF

See Also

Reference

PointF Members

C1.Web.Wijmo.Controls Namespace

Members The following tables list the members exposed by PointF.

Public Constructors

Name Description

PointF Constructor Initializes a new instance of the PointF class with the specified

coordinates.

Top

Public Fields

Name Description

Empty Represents a PointF that has X and Y values set to zero.

Top

Public Properties

Name Description

X Gets or sets the x-coordinate of this point.

Y Gets or sets the y-coordinate of this point.

Top

Public Methods

Name Description

Equals Specifies whether this PointF contains the same coordinates as the

specified PointF.

GetHashCode Returns a hash code for this PointF.

Top

Public Operators

Equality Compares two PointF objects. The result specifies whether the values of the

X and properties of the two PointF objects are equal.

Inequality Compares two PointF objects. The result specifies whether the values of the

and Y properties of the two PointF objects are unequal.

Top

See Also

Reference

PointF Structure

C1.Web.Wijmo.Controls Namespace

PointF Constructor The horizontal position of the point.

The vertical position of the point.

Initializes a new instance of the PointF class with the specified coordinates.

Syntax

Visual Basic (Declaration)

Public Function New( _

ByVal x As System.Single, _

ByVal y As System.Single _

)

C#

public PointF(

System.float x,

System.float y

)

Parameters

x

The horizontal position of the point.

y

The vertical position of the point.

See Also

Reference

PointF Structure

PointF Members

Methods For a list of all members of this type, see PointF members.

Public Methods

Name Description

Equals Specifies whether this PointF contains the same coordinates as the

specified PointF.

GetHashCode Returns a hash code for this PointF.

Top

See Also

Reference

PointF Structure

C1.Web.Wijmo.Controls Namespace

Equals Method Specifies whether this PointF contains the same coordinates as the specified PointF.

Syntax

Visual Basic (Declaration)

Public Overrides Function Equals( _

ByVal obj As System.Object _

) As System.Boolean

C#

public override System.bool Equals(

System.object obj

)

Parameters

obj

The System.Object to test.

Return Value

true if obj is a PointF and has the same coordinates as this PointF.

See Also

Reference

PointF Structure

PointF Members

GetHashCode Method Returns a hash code for this PointF.

Syntax

Visual Basic (Declaration)

Public Overrides Function GetHashCode() As System.Integer

C#

public override System.int GetHashCode()

Return Value

An integer value that specifies a hash value for this PointF.

See Also

Reference

PointF Structure

PointF Members

Properties For a list of all members of this type, see PointF members.

Public Properties

Name Description

X Gets or sets the x-coordinate of this point.

Y Gets or sets the y-coordinate of this point.

Top

See Also

Reference

PointF Structure

C1.Web.Wijmo.Controls Namespace

X Property Gets or sets the x-coordinate of this point.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>

<C1DescriptionAttribute(Key="PointF.X", Description="Gets or sets the x-

coordinate of this point.")>

<System.ComponentModel.NotifyParentPropertyAttribute(True)>

<C1CategoryAttribute("Data")>

<System.ComponentModel.DefaultValueAttribute()>

Public Property X As System.Single

C#

[System.ComponentModel.RefreshProperties(RefreshProperties.All)]

[C1Description(Key="PointF.X", Description="Gets or sets the x-coordinate of

this point.")]

[System.ComponentModel.NotifyParentProperty(true)]

[C1Category("Data")]

[System.ComponentModel.DefaultValue()]

public System.float X {get; set;}

See Also

Reference

PointF Structure

PointF Members

Y Property Gets or sets the y-coordinate of this point.

Syntax

Visual Basic (Declaration)

<C1DescriptionAttribute(Key="PointF.Y", Description="Gets or sets the y-

coordinate of this point.")>

<System.ComponentModel.NotifyParentPropertyAttribute(True)>

<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>

<C1CategoryAttribute("Data")>

<System.ComponentModel.DefaultValueAttribute()>

Public Property Y As System.Single

C#

[C1Description(Key="PointF.Y", Description="Gets or sets the y-coordinate of

this point.")]

[System.ComponentModel.NotifyParentProperty(true)]

[System.ComponentModel.RefreshProperties(RefreshProperties.All)]

[C1Category("Data")]

[System.ComponentModel.DefaultValue()]

public System.float Y {get; set;}

See Also

Reference

PointF Structure

PointF Members

Fields For a list of all members of this type, see PointF members.

Public Fields

Name Description

Empty Represents a PointF that has X and Y values set to zero.

Top

See Also

Reference

PointF Structure

C1.Web.Wijmo.Controls Namespace

Empty Field Represents a PointF that has X and Y values set to zero.

Syntax

Visual Basic (Declaration)

Public Shared ReadOnly Empty As PointF

C#

public static readonly PointF Empty

See Also

Reference

PointF Structure

PointF Members

Operators

Equality Operator Compares two PointF objects. The result specifies whether the values of the X and properties of

the two PointF objects are equal.

Syntax

Visual Basic (Declaration)

Public Operator =( _

ByVal left As PointF, _

ByVal right As PointF _

) As System.Boolean

C#

public System.bool operator ==(

PointF left,

PointF right

)

Parameters

left

A PointF to compare.

right

A PointF to compare.

Return Value

true if the X and Y values of the left and right are equal; otherwise, false.

See Also

Reference

PointF Structure

PointF Members

Y Property

Inequality Operator Compares two PointF objects. The result specifies whether the values of the and Y properties of

the two PointF objects are unequal.

Syntax

Visual Basic (Declaration)

Public Operator <>( _

ByVal left As PointF, _

ByVal right As PointF _

) As System.Boolean

C#

public System.bool operator !=(

PointF left,

PointF right

)

Parameters

left

A PointF to compare.

right

A PointF to compare.

Return Value

true if the X and Y values of the left and right differ; otherwise, false.

See Also

Reference

PointF Structure

PointF Members

X Property

C1.Web.Wijmo.Controls.C1Upload

Namespace

Overview Classes

Class Description

C1FileInfo Class that represents the information of the uploaded file.

C1FileInfoCollection Represents a collection of C1FileInfo.

C1Upload Represents a Upload control.

LocalizationOption

UploadedFileEventArgs Provides data for the FileExists event.

UploadModule HttpModule for C1Upload to handle http requests.

UploadProgress Class that wraps the data of the uploading progress.

UploadProgressHandler IHttpHandler for retrieving the progress data from the client side.

ValidateFileEventArgs Provides data for the ValidatingFile event.

Delegates

Delegate Description

UploadedFileEventHandler Represents the method that will handle the FileExists event.

ValidateFileEventHandler Represents the method that will handle the ValidatingFile

event.

See Also

Reference

C1.Web.Wijmo.Controls.4 Assembly

Classes

C1FileInfo Class that represents the information of the uploaded file.

Object Model

Syntax

Visual Basic (Declaration)

Public Class C1FileInfo

C#

public class C1FileInfo

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.C1FileInfo

See Also

Reference

C1FileInfo Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Overview Class that represents the information of the uploaded file.

Object Model

Syntax

Visual Basic (Declaration)

Public Class C1FileInfo

C#

public class C1FileInfo

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.C1FileInfo

See Also

Reference

C1FileInfo Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Members The following tables list the members exposed by C1FileInfo.

Public Constructors

Name Description

C1FileInfo Constructor Initializes a new instance of the C1FileInfo class.

Top

Public Properties

Name Description

ContentType Gets the HTTP MIME type of the output stream.

Extension Gets the file extension of the uploaded file.

FileName Gets the name of the uploaded file.

Size Gets the file size.

TempFileName Gets the full path of the temporary file.

Top

Public Methods

Name Description

Delete Deletes the file from the temp folder.

GetStream Gets the file stream.

SaveAs Overloaded. Saves the file to a specified path.

Top

See Also

Reference

C1FileInfo Class

C1.Web.Wijmo.Controls.C1Upload Namespace

C1FileInfo Constructor Initializes a new instance of the C1FileInfo class.

Syntax

Visual Basic (Declaration)

Public Function New()

C#

public C1FileInfo()

See Also

Reference

C1FileInfo Class

C1FileInfo Members

Methods For a list of all members of this type, see C1FileInfo members.

Public Methods

Name Description

Delete Deletes the file from the temp folder.

GetStream Gets the file stream.

SaveAs Overloaded. Saves the file to a specified path.

Top

See Also

Reference

C1FileInfo Class

C1.Web.Wijmo.Controls.C1Upload Namespace

Delete Method Deletes the file from the temp folder.

Syntax

Visual Basic (Declaration)

Public Sub Delete()

C#

public void Delete()

See Also

Reference

C1FileInfo Class

C1FileInfo Members

GetStream Method Gets the file stream.

Syntax

Visual Basic (Declaration)

Public Function GetStream() As System.IO.FileStream

C#

public System.IO.FileStream GetStream()

See Also

Reference

C1FileInfo Class

C1FileInfo Members

SaveAs Method Saves the file to a specified path.

Overload List

Overload Description

SaveAs(String) Saves the file to a specified path.

SaveAs(String,Boolean) Saves the file to a specified path.

See Also

Reference

C1FileInfo Class

C1FileInfo Members

SaveAs(String) Method The target path to save to.

Saves the file to a specified path.

Syntax

Visual Basic (Declaration)

Public Overloads Sub SaveAs( _

ByVal path As System.String _

)

C#

public void SaveAs(

System.string path

)

Parameters

path

The target path to save to.

See Also

Reference

C1FileInfo Class

C1FileInfo Members

Overload List

SaveAs(String,Boolean) Method Saves the file to a specified path.

Syntax

Visual Basic (Declaration)

Public Overloads Sub SaveAs( _

ByVal path As System.String, _

ByVal overwrite As System.Boolean _

)

C#

public void SaveAs(

System.string path,

System.bool overwrite

)

Parameters

path

The target path to save to.

overwrite

Whether to overwrite the existing file.

See Also

Reference

C1FileInfo Class

C1FileInfo Members

Overload List

Properties For a list of all members of this type, see C1FileInfo members.

Public Properties

Name Description

ContentType Gets the HTTP MIME type of the output stream.

Extension Gets the file extension of the uploaded file.

FileName Gets the name of the uploaded file.

Size Gets the file size.

TempFileName Gets the full path of the temporary file.

Top

See Also

Reference

C1FileInfo Class

C1.Web.Wijmo.Controls.C1Upload Namespace

ContentType Property Gets the HTTP MIME type of the output stream.

Syntax

Visual Basic (Declaration)

Public ReadOnly Property ContentType As System.String

C#

public System.string ContentType {get;}

See Also

Reference

C1FileInfo Class

C1FileInfo Members

Extension Property Gets the file extension of the uploaded file.

Syntax

Visual Basic (Declaration)

Public ReadOnly Property Extension As System.String

C#

public System.string Extension {get;}

See Also

Reference

C1FileInfo Class

C1FileInfo Members

FileName Property Gets the name of the uploaded file.

Syntax

Visual Basic (Declaration)

Public ReadOnly Property FileName As System.String

C#

public System.string FileName {get;}

See Also

Reference

C1FileInfo Class

C1FileInfo Members

Size Property Gets the file size.

Syntax

Visual Basic (Declaration)

Public ReadOnly Property Size As System.Long

C#

public System.long Size {get;}

See Also

Reference

C1FileInfo Class

C1FileInfo Members

TempFileName Property Gets the full path of the temporary file.

Syntax

Visual Basic (Declaration)

Public ReadOnly Property TempFileName As System.String

C#

public System.string TempFileName {get;}

See Also

Reference

C1FileInfo Class

C1FileInfo Members

C1FileInfoCollection Represents a collection of C1FileInfo.

Object Model

Syntax

Visual Basic (Declaration)

<System.Reflection.DefaultMemberAttribute("Item")>

Public Class C1FileInfoCollection

Inherits System.Collections.CollectionBase

C#

[System.Reflection.DefaultMember("Item")]

public class C1FileInfoCollection : System.Collections.CollectionBase

Inheritance Hierarchy

System.Object

System.Collections.CollectionBase

C1.Web.Wijmo.Controls.C1Upload.C1FileInfoCollection

See Also

Reference

C1FileInfoCollection Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Overview Represents a collection of C1FileInfo.

Object Model

Syntax

Visual Basic (Declaration)

<System.Reflection.DefaultMemberAttribute("Item")>

Public Class C1FileInfoCollection

Inherits System.Collections.CollectionBase

C#

[System.Reflection.DefaultMember("Item")]

public class C1FileInfoCollection : System.Collections.CollectionBase

Inheritance Hierarchy

System.Object

System.Collections.CollectionBase

C1.Web.Wijmo.Controls.C1Upload.C1FileInfoCollection

See Also

Reference

C1FileInfoCollection Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Members The following tables list the members exposed by C1FileInfoCollection.

Public Constructors

Name Description

C1FileInfoCollection Constructor Initializes a new instance of the C1FileInfoCollection class.

Top

Public Properties

Name Description

Capacity (Inherited from System.Collections.CollectionBase)

Count (Inherited from System.Collections.CollectionBase)

Item Indexer of this collection.

Top

Public Methods

Name Description

Add Adds a C1FileInfo to this collection.

Clear (Inherited from System.Collections.CollectionBase)

Contains Tests whether an instance of C1FileInfo is contained in this collection.

IndexOf Gets the index of the object.

Insert Inserts a C1FileInfo to this collection.

Remove Removes the C1FileInfo from this collection.

RemoveAt (Inherited from System.Collections.CollectionBase)

Top

See Also

Reference

C1FileInfoCollection Class

C1.Web.Wijmo.Controls.C1Upload Namespace

C1FileInfoCollection Constructor Initializes a new instance of the C1FileInfoCollection class.

Syntax

Visual Basic (Declaration)

Public Function New()

C#

public C1FileInfoCollection()

See Also

Reference

C1FileInfoCollection Class

C1FileInfoCollection Members

Methods For a list of all members of this type, see C1FileInfoCollection members.

Public Methods

Name Description

Add Adds a C1FileInfo to this collection.

Clear (Inherited from System.Collections.CollectionBase)

Contains Tests whether an instance of C1FileInfo is contained in this collection.

IndexOf Gets the index of the object.

Insert Inserts a C1FileInfo to this collection.

Remove Removes the C1FileInfo from this collection.

RemoveAt (Inherited from System.Collections.CollectionBase)

Top

See Also

Reference

C1FileInfoCollection Class

C1.Web.Wijmo.Controls.C1Upload Namespace

Add Method Adds a C1FileInfo to this collection.

Syntax

Visual Basic (Declaration)

Public Function Add( _

ByVal fi As C1FileInfo _

) As System.Integer

C#

public System.int Add(

C1FileInfo fi

)

Parameters

fi

The C1FileInfo object to add.

Return Value

The added position.

See Also

Reference

C1FileInfoCollection Class

C1FileInfoCollection Members

Contains Method Tests whether an instance of C1FileInfo is contained in this collection.

Syntax

Visual Basic (Declaration)

Public Function Contains( _

ByVal fi As C1FileInfo _

) As System.Boolean

C#

public System.bool Contains(

C1FileInfo fi

)

Parameters

fi

The C1FileInfo to test.

Return Value

True if exists.

See Also

Reference

C1FileInfoCollection Class

C1FileInfoCollection Members

IndexOf Method Gets the index of the object.

Syntax

Visual Basic (Declaration)

Public Function IndexOf( _

ByVal obj As System.Object _

) As System.Integer

C#

public System.int IndexOf(

System.object obj

)

Parameters

obj

The object to test.

Return Value

The index of this object.

See Also

Reference

C1FileInfoCollection Class

C1FileInfoCollection Members

Insert Method Inserts a C1FileInfo to this collection.

Syntax

Visual Basic (Declaration)

Public Sub Insert( _

ByVal index As System.Integer, _

ByVal fi As C1FileInfo _

)

C#

public void Insert(

System.int index,

C1FileInfo fi

)

Parameters

index

The position to insert.

fi

The C1FileInfo object to insert.

See Also

Reference

C1FileInfoCollection Class

C1FileInfoCollection Members

Remove Method The C1FileInfo object to remove.

Removes the C1FileInfo from this collection.

Syntax

Visual Basic (Declaration)

Public Sub Remove( _

ByVal fi As C1FileInfo _

)

C#

public void Remove(

C1FileInfo fi

)

Parameters

fi

The C1FileInfo object to remove.

See Also

Reference

C1FileInfoCollection Class

C1FileInfoCollection Members

Properties For a list of all members of this type, see C1FileInfoCollection members.

Public Properties

Name Description

Capacity (Inherited from System.Collections.CollectionBase)

Count (Inherited from System.Collections.CollectionBase)

Item Indexer of this collection.

Top

See Also

Reference

C1FileInfoCollection Class

C1.Web.Wijmo.Controls.C1Upload Namespace

Item Property Indexer of this collection.

Syntax

Visual Basic (Declaration)

Public Default Property Item( _

ByVal obj As System.Object _

) As C1FileInfo

C#

public C1FileInfo this[

System.object obj

]; {get; set;}

Parameters

obj

See Also

Reference

C1FileInfoCollection Class

C1FileInfoCollection Members

C1Upload Represents a Upload control.

Object Model

Syntax

Visual Basic (Declaration)

<WidgetDependenciesAttribute(System.Object[])>

<System.ComponentModel.DesignerAttribute(DesignerBaseTypeName="System.Compone

ntModel.Design.IDesigner",

DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1Upload.C1UploadDesigner,

C1.Web.Wijmo.Controls.Design.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")>

<System.Drawing.ToolboxBitmapAttribute()>

<System.Web.UI.ToolboxDataAttribute("<{0}:C1Upload runat=server

width=300px></{0}:C1Upload>")>

<System.ComponentModel.LicenseProviderAttribute()>

Public Class C1Upload

Inherits C1.Web.Wijmo.Controls.C1TargetControlBase

C#

[WidgetDependencies(System.Object[])]

[System.ComponentModel.Designer(DesignerBaseTypeName="System.ComponentModel.D

esign.IDesigner",

DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1Upload.C1UploadDesigner,

C1.Web.Wijmo.Controls.Design.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")]

[System.Drawing.ToolboxBitmap()]

[System.Web.UI.ToolboxData("<{0}:C1Upload runat=server

width=300px></{0}:C1Upload>")]

[System.ComponentModel.LicenseProvider()]

public class C1Upload : C1.Web.Wijmo.Controls.C1TargetControlBase

Inheritance Hierarchy

System.Object

System.Web.UI.Control

System.Web.UI.WebControls.WebControl

C1.Web.Wijmo.Controls.C1TargetControlBase

C1.Web.Wijmo.Controls.C1Upload.C1Upload

See Also

Reference

C1Upload Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Overview Represents a Upload control.

Object Model

Syntax

Visual Basic (Declaration)

<WidgetDependenciesAttribute(System.Object[])>

<System.ComponentModel.DesignerAttribute(DesignerBaseTypeName="System.Compone

ntModel.Design.IDesigner",

DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1Upload.C1UploadDesigner,

C1.Web.Wijmo.Controls.Design.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")>

<System.Drawing.ToolboxBitmapAttribute()>

<System.Web.UI.ToolboxDataAttribute("<{0}:C1Upload runat=server

width=300px></{0}:C1Upload>")>

<System.ComponentModel.LicenseProviderAttribute()>

Public Class C1Upload

Inherits C1.Web.Wijmo.Controls.C1TargetControlBase

C#

[WidgetDependencies(System.Object[])]

[System.ComponentModel.Designer(DesignerBaseTypeName="System.ComponentModel.D

esign.IDesigner",

DesignerTypeName="C1.Web.Wijmo.Controls.Design.C1Upload.C1UploadDesigner,

C1.Web.Wijmo.Controls.Design.4, Version=4.0.20153.222, Culture=neutral,

PublicKeyToken=9b75583953471eea")]

[System.Drawing.ToolboxBitmap()]

[System.Web.UI.ToolboxData("<{0}:C1Upload runat=server

width=300px></{0}:C1Upload>")]

[System.ComponentModel.LicenseProvider()]

public class C1Upload : C1.Web.Wijmo.Controls.C1TargetControlBase

Inheritance Hierarchy

System.Object

System.Web.UI.Control

System.Web.UI.WebControls.WebControl

C1.Web.Wijmo.Controls.C1TargetControlBase

C1.Web.Wijmo.Controls.C1Upload.C1Upload

See Also

Reference

C1Upload Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Members The following tables list the members exposed by C1Upload.

Public Constructors

Name Description

C1Upload Constructor Initializes a new instance of the C1Upload class.

Top

Public Properties

Name Description

Accept Gets or sets the accept file type of upload. audio/*

All sound files are accepted video/* All video files are

accepted image/* All image files are accepted

MIME_type A valid MIME type, with no parameters.

AccessKey Overridden. Keyboard shortcut used by the control.

AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)

Attributes (Inherited from

System.Web.UI.WebControls.WebControl)

AutoSubmit A value that indicates whether to submit the file as

soon as it is selected.

CDNDependencyPaths A string array value specifies all css/js references that

wijmo control depends on. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

CDNPath Content Delivery Network path. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

ClientID (Inherited from System.Web.UI.Control)

ClientIDMode (Inherited from System.Web.UI.Control)

Controls (Inherited from System.Web.UI.Control)

ControlStyle (Inherited from

System.Web.UI.WebControls.WebControl)

ControlStyleCreated (Inherited from

System.Web.UI.WebControls.WebControl)

CssClass (Inherited from

System.Web.UI.WebControls.WebControl)

DisplayVisible Gets or sets a value that indicates whether a server

control is rendered as UI on the page. (Inherited

from C1.Web.Wijmo.Controls.C1TargetControlBase)

EnableCombinedJavaScripts Enable JavaScripts files combined into one file. In

order to combined enabled, you must register the

WijmoHttpHandler in web.config. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

Enabled Gets or sets a value indicating whether the Web

server control is enabled. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

EnableSWFUpload

EnableSWFUploadOnIE

EnableTheming (Inherited from

System.Web.UI.WebControls.WebControl)

EnableViewState (Inherited from System.Web.UI.Control)

HasAttributes (Inherited from

System.Web.UI.WebControls.WebControl)

Height (Inherited from

System.Web.UI.WebControls.WebControl)

ID (Inherited from System.Web.UI.Control)

IsSeparatorProgress Gets or sets a value that indicates whether to show

separator progress for each file input.

Localization Set localization string of buttons.

MaximumFiles Gets or sets the maximum number of files to be

uploaded.

MaximumFileSize Gets or sets the maximum upload size to allow in KB.

NamingContainer (Inherited from System.Web.UI.Control)

OnClientChange The event associated with this property occurs when

a user selects a file. This event can be cancelled.

OnClientComplete The event associated with this property occurs when

a file upload is complete.

OnClientProgress The event associated with this property occurs when

a file is uploading.

OnClientTotalComplete The event associated with this property occurs when

the uploadAll button is clicked and the file upload is

complete.

OnClientTotalProgress The event associated with this property occurs when

click the uploadAll button and file uploading.

OnClientTotalUpload The event associated with this property occurs when

the uploadAll button is clicked. This event can be

cancelled.

OnClientUpload The event associated with this property occurs

before the file is uploaded. This event can be

cancelled.

OnClientValidatedFile This event is for the client validatedFile event, when

the server ValidatingFile event is fired, the validating

event's information will be sent to client side. User

can bind this event to show the server side

validating messages.

Page (Inherited from System.Web.UI.Control)

Parent (Inherited from System.Web.UI.Control)

RenderingCompatibility (Inherited from System.Web.UI.Control)

ShowUploadedFiles Gets or sets a value that indicates whether to show

uploaded file list after uploaded.

Site (Inherited from System.Web.UI.Control)

SkinID (Inherited from

System.Web.UI.WebControls.WebControl)

Style (Inherited from

System.Web.UI.WebControls.WebControl)

SupportsDisabledAttribute (Inherited from

System.Web.UI.WebControls.WebControl)

TabIndex (Inherited from

System.Web.UI.WebControls.WebControl)

TargetFolder Gets or sets the virtual path of the folder where

C1Upload will automatically save the valid files after

the upload completes.

TempFolder Gets or sets the virtual path of the folder in which to

place temporary upload files.

TemplateControl (Inherited from System.Web.UI.Control)

TemplateSourceDirectory (Inherited from System.Web.UI.Control)

Theme Name of the theme that will be used to style the

widgets. Available embedded themes include: aristo,

midnight, and ui-lightness. Note that only one

theme can be used for the whole page at one time.

Please make sure that all widget extenders have the

same Theme value. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

ThemeSwatch A value that indicates the theme swatch of the

control, this property only works when

WijmoControlMode property is Mobile. (Inherited

from C1.Web.Wijmo.Controls.C1TargetControlBase)

ToolTip (Inherited from

System.Web.UI.WebControls.WebControl)

UniqueID (Inherited from System.Web.UI.Control)

UseCDN Determines whether the widget extender must load

client resources from CDN (Content Delivery

Network) path given by property CDNPath.

(Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

ValidateRequestMode (Inherited from System.Web.UI.Control)

ValidFileExtensions Gets or sets the array of allowed file extensions.

ValidMimeTypes Gets or sets the array of allowed mime types.

ViewStateMode (Inherited from System.Web.UI.Control)

Width (Inherited from

System.Web.UI.WebControls.WebControl)

WijmoControlMode A value that indicates mode of the control, whether

it is a mobile or web control. Note that only one

value can be used for the whole website or project.

(Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

WijmoCssAdapter Indicates the control applies the theme of JQuery UI

or Bootstrap. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

Top

Public Methods

Name Description

ApplyStyle (Inherited from System.Web.UI.WebControls.WebControl)

ApplyStyleSheetSkin (Inherited from System.Web.UI.Control)

CopyBaseAttributes (Inherited from System.Web.UI.WebControls.WebControl)

DataBind (Inherited from System.Web.UI.Control)

Dispose (Inherited from System.Web.UI.Control)

FindControl (Inherited from System.Web.UI.Control)

Focus (Inherited from System.Web.UI.Control)

GetPropertyValue<V> Gets the property value by property name. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

GetRouteUrl Overloaded. (Inherited from System.Web.UI.Control)

GetScriptDescriptors When overridden in a derived class, registers the

WidgetDescriptor objects for the control. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

GetScriptReferences When overridden in a derived class, registers an additional

script libraries for the extender control. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

GetUniqueIDRelativeTo (Inherited from System.Web.UI.Control)

HasControls (Inherited from System.Web.UI.Control)

MergeStyle (Inherited from System.Web.UI.WebControls.WebControl)

RegisterDesignTimeStyleSheet Register design time stylesheet (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

RenderBeginTag (Inherited from System.Web.UI.WebControls.WebControl)

RenderControl (Inherited from System.Web.UI.Control)

RenderEndTag (Inherited from System.Web.UI.WebControls.WebControl)

ResolveClientUrl (Inherited from System.Web.UI.Control)

ResolveUrl (Inherited from System.Web.UI.Control)

SetPropertyValue<V> Sets the property value by property name. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

SetRenderMethodDelegate (Inherited from System.Web.UI.Control)

Top

Public Events

Name Description

DataBinding (Inherited from System.Web.UI.Control)

Disposed (Inherited from System.Web.UI.Control)

Init (Inherited from System.Web.UI.Control)

Load (Inherited from System.Web.UI.Control)

PreRender (Inherited from System.Web.UI.Control)

Unload (Inherited from System.Web.UI.Control)

ValidatingFile Occurs when validating the uploaded file.

Top

See Also

Reference

C1Upload Class

C1.Web.Wijmo.Controls.C1Upload Namespace

C1Upload Constructor Initializes a new instance of the C1Upload class.

Syntax

Visual Basic (Declaration)

Public Function New()

C#

public C1Upload()

See Also

Reference

C1Upload Class

C1Upload Members

Properties For a list of all members of this type, see C1Upload members.

Public Properties

Name Description

Accept Gets or sets the accept file type of upload. audio/*

All sound files are accepted video/* All video files are

accepted image/* All image files are accepted

MIME_type A valid MIME type, with no parameters.

AccessKey Overridden. Keyboard shortcut used by the control.

AppRelativeTemplateSourceDirectory (Inherited from System.Web.UI.Control)

Attributes (Inherited from

System.Web.UI.WebControls.WebControl)

AutoSubmit A value that indicates whether to submit the file as

soon as it is selected.

CDNDependencyPaths A string array value specifies all css/js references that

wijmo control depends on. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

CDNPath Content Delivery Network path. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

ClientID (Inherited from System.Web.UI.Control)

ClientIDMode (Inherited from System.Web.UI.Control)

Controls (Inherited from System.Web.UI.Control)

ControlStyle (Inherited from

System.Web.UI.WebControls.WebControl)

ControlStyleCreated (Inherited from

System.Web.UI.WebControls.WebControl)

CssClass (Inherited from

System.Web.UI.WebControls.WebControl)

DisplayVisible Gets or sets a value that indicates whether a server

control is rendered as UI on the page. (Inherited

from C1.Web.Wijmo.Controls.C1TargetControlBase)

EnableCombinedJavaScripts Enable JavaScripts files combined into one file. In

order to combined enabled, you must register the

WijmoHttpHandler in web.config. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

Enabled Gets or sets a value indicating whether the Web

server control is enabled. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

EnableSWFUpload

EnableSWFUploadOnIE

EnableTheming (Inherited from

System.Web.UI.WebControls.WebControl)

EnableViewState (Inherited from System.Web.UI.Control)

HasAttributes (Inherited from

System.Web.UI.WebControls.WebControl)

Height (Inherited from

System.Web.UI.WebControls.WebControl)

ID (Inherited from System.Web.UI.Control)

IsSeparatorProgress Gets or sets a value that indicates whether to show

separator progress for each file input.

Localization Set localization string of buttons.

MaximumFiles Gets or sets the maximum number of files to be

uploaded.

MaximumFileSize Gets or sets the maximum upload size to allow in KB.

NamingContainer (Inherited from System.Web.UI.Control)

OnClientChange The event associated with this property occurs when

a user selects a file. This event can be cancelled.

OnClientComplete The event associated with this property occurs when

a file upload is complete.

OnClientProgress The event associated with this property occurs when

a file is uploading.

OnClientTotalComplete The event associated with this property occurs when

the uploadAll button is clicked and the file upload is

complete.

OnClientTotalProgress The event associated with this property occurs when

click the uploadAll button and file uploading.

OnClientTotalUpload The event associated with this property occurs when

the uploadAll button is clicked. This event can be

cancelled.

OnClientUpload The event associated with this property occurs

before the file is uploaded. This event can be

cancelled.

OnClientValidatedFile This event is for the client validatedFile event, when

the server ValidatingFile event is fired, the validating

event's information will be sent to client side. User

can bind this event to show the server side

validating messages.

Page (Inherited from System.Web.UI.Control)

Parent (Inherited from System.Web.UI.Control)

RenderingCompatibility (Inherited from System.Web.UI.Control)

ShowUploadedFiles Gets or sets a value that indicates whether to show

uploaded file list after uploaded.

Site (Inherited from System.Web.UI.Control)

SkinID (Inherited from

System.Web.UI.WebControls.WebControl)

Style (Inherited from

System.Web.UI.WebControls.WebControl)

SupportsDisabledAttribute (Inherited from

System.Web.UI.WebControls.WebControl)

TabIndex (Inherited from

System.Web.UI.WebControls.WebControl)

TargetFolder Gets or sets the virtual path of the folder where

C1Upload will automatically save the valid files after

the upload completes.

TempFolder Gets or sets the virtual path of the folder in which to

place temporary upload files.

TemplateControl (Inherited from System.Web.UI.Control)

TemplateSourceDirectory (Inherited from System.Web.UI.Control)

Theme Name of the theme that will be used to style the

widgets. Available embedded themes include: aristo,

midnight, and ui-lightness. Note that only one

theme can be used for the whole page at one time.

Please make sure that all widget extenders have the

same Theme value. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

ThemeSwatch A value that indicates the theme swatch of the

control, this property only works when

WijmoControlMode property is Mobile. (Inherited

from C1.Web.Wijmo.Controls.C1TargetControlBase)

ToolTip (Inherited from

System.Web.UI.WebControls.WebControl)

UniqueID (Inherited from System.Web.UI.Control)

UseCDN Determines whether the widget extender must load

client resources from CDN (Content Delivery

Network) path given by property CDNPath.

(Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

ValidateRequestMode (Inherited from System.Web.UI.Control)

ValidFileExtensions Gets or sets the array of allowed file extensions.

ValidMimeTypes Gets or sets the array of allowed mime types.

ViewStateMode (Inherited from System.Web.UI.Control)

Width (Inherited from

System.Web.UI.WebControls.WebControl)

WijmoControlMode A value that indicates mode of the control, whether

it is a mobile or web control. Note that only one

value can be used for the whole website or project.

(Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

WijmoCssAdapter Indicates the control applies the theme of JQuery UI

or Bootstrap. (Inherited from

C1.Web.Wijmo.Controls.C1TargetControlBase)

Top

See Also

Reference

C1Upload Class

C1.Web.Wijmo.Controls.C1Upload Namespace

Accept Property Gets or sets the accept file type of upload. audio/* All sound files are accepted video/* All video

files are accepted image/* All image files are accepted MIME_type A valid MIME type, with no

parameters.

Syntax

Visual Basic (Declaration)

<LayoutAttribute(LayoutType.Behavior)>

<System.ComponentModel.DefaultValueAttribute()>

<C1DescriptionAttribute(Key="C1Upload.Accept", Description="Gets or sets the

accept file type of upload.

audio/* All sound files are accepted

video/* All video files are accepted

image/* All image files are accepted

MIME_type A valid MIME type, with no parameters.")>

<WidgetOptionAttribute()>

<C1CategoryAttribute("Behavior")>

Public Property Accept As System.String

C#

[Layout(LayoutType.Behavior)]

[System.ComponentModel.DefaultValue()]

[C1Description(Key="C1Upload.Accept", Description="Gets or sets the accept

file type of upload.

audio/* All sound files are accepted

video/* All video files are accepted

image/* All image files are accepted

MIME_type A valid MIME type, with no parameters.")]

[WidgetOption()]

[C1Category("Behavior")]

public System.string Accept {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

AccessKey Property Keyboard shortcut used by the control.

Syntax

Visual Basic (Declaration)

<WidgetOptionAttribute()>

<LayoutAttribute(LayoutType.Accessibility)>

<C1DescriptionAttribute(Key="C1Upload.AccessKey", Description="Keyboard

shortcut used by the control.")>

<C1CategoryAttribute("Accessibility")>

Public Overrides Property AccessKey As System.String

C#

[WidgetOption()]

[Layout(LayoutType.Accessibility)]

[C1Description(Key="C1Upload.AccessKey", Description="Keyboard shortcut used

by the control.")]

[C1Category("Accessibility")]

public override System.string AccessKey {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

AutoSubmit Property A value that indicates whether to submit the file as soon as it is selected.

Syntax

Visual Basic (Declaration)

<C1CategoryAttribute("Behavior")>

<System.ComponentModel.DefaultValueAttribute()>

<C1DescriptionAttribute(Key="C1Upload.AutoSubmit", Description="A value that

indicates whether to submit the file as soon as it is selected.")>

<WidgetOptionAttribute()>

<LayoutAttribute(LayoutType.Behavior)>

Public Property AutoSubmit As System.Boolean

C#

[C1Category("Behavior")]

[System.ComponentModel.DefaultValue()]

[C1Description(Key="C1Upload.AutoSubmit", Description="A value that indicates

whether to submit the file as soon as it is selected.")]

[WidgetOption()]

[Layout(LayoutType.Behavior)]

public System.bool AutoSubmit {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

EnableSWFUpload Property Visual Basic (Declaration)

<WidgetOptionAttribute()> <C1DescriptionAttribute(Key="C1Upload.EnableSWFUpload", Description="Upload with SWFupload.swf on all browsers.")> <LayoutAttribute(LayoutType.Behavior)> <C1CategoryAttribute("Behavior")> <System.ComponentModel.DefaultValueAttribute()> Public Property EnableSWFUpload As System.Boolean

C#

[WidgetOption()] [C1Description(Key="C1Upload.EnableSWFUpload", Description="Upload with

SWFupload.swf on all browsers.")] [Layout(LayoutType.Behavior)] [C1Category("Behavior")] [System.ComponentModel.DefaultValue()] public System.bool EnableSWFUpload {get; set;}

EnableSWFUploadOnIE Property Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()> <WidgetOptionAttribute()> <C1DescriptionAttribute(Key="C1Upload.EnableSWFUploadOnIE", Description="Upload with SWFupload.swf on IE.")> <LayoutAttribute(LayoutType.Behavior)> <C1CategoryAttribute("Behavior")> Public Property EnableSWFUploadOnIE As System.Boolean

C#

[System.ComponentModel.DefaultValue()] [WidgetOption()] [C1Description(Key="C1Upload.EnableSWFUploadOnIE", Description="Upload with SWFupload.swf on IE.")] [Layout(LayoutType.Behavior)] [C1Category("Behavior")] public System.bool EnableSWFUploadOnIE {get; set;}

IsSeparatorProgress Property Gets or sets a value that indicates whether to show separator progress for each file input.

Syntax

Visual Basic (Declaration)

<C1CategoryAttribute("Behavior")>

<System.ComponentModel.DefaultValueAttribute()>

<LayoutAttribute(LayoutType.Misc)>

<C1DescriptionAttribute(Key="C1Upload.IsSeparatorProgress", Description="Gets

or sets a value that indicates whether to show separator progress for each

file input.")>

<WidgetOptionAttribute()>

Public Property IsSeparatorProgress As System.Boolean

C#

[C1Category("Behavior")]

[System.ComponentModel.DefaultValue()]

[Layout(LayoutType.Misc)]

[C1Description(Key="C1Upload.IsSeparatorProgress", Description="Gets or sets

a value that indicates whether to show separator progress for each file

input.")]

[WidgetOption()]

public System.bool IsSeparatorProgress {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

Localization Property Set localization string of buttons.

Syntax

Visual Basic (Declaration)

<LayoutAttribute(LayoutType.Behavior)>

<WidgetOptionAttribute()>

<System.ComponentModel.BrowsableAttribute(False)>

Public ReadOnly Property Localization As LocalizationOption

C#

[Layout(LayoutType.Behavior)]

[WidgetOption()]

[System.ComponentModel.Browsable(false)]

public LocalizationOption Localization {get;}

See Also

Reference

C1Upload Class

C1Upload Members

MaximumFiles Property Gets or sets the maximum number of files to be uploaded.

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

<C1DescriptionAttribute(Key="C1Upload.MaximumFiles", Description="Gets or

sets the maximum number of files to be uploaded.")>

<System.ComponentModel.DefaultValueAttribute()>

<C1CategoryAttribute("Behavior")>

<LayoutAttribute(LayoutType.Behavior)>

Public Property MaximumFiles As System.Integer

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

[C1Description(Key="C1Upload.MaximumFiles", Description="Gets or sets the

maximum number of files to be uploaded.")]

[System.ComponentModel.DefaultValue()]

[C1Category("Behavior")]

[Layout(LayoutType.Behavior)]

public System.int MaximumFiles {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

MaximumFileSize Property Gets or sets the maximum upload size to allow in KB.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()>

<WidgetOptionAttribute()>

<LayoutAttribute(LayoutType.Behavior)>

<C1DescriptionAttribute(Key="C1Upload.MaximumFileSize", Description="Gets or

sets the maximum upload size to allow in KB.")>

<C1CategoryAttribute("Behavior")>

Public Property MaximumFileSize As System.Integer

C#

[System.ComponentModel.DefaultValue()]

[WidgetOption()]

[Layout(LayoutType.Behavior)]

[C1Description(Key="C1Upload.MaximumFileSize", Description="Gets or sets the

maximum upload size to allow in KB.")]

[C1Category("Behavior")]

public System.int MaximumFileSize {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

OnClientChange Property The event associated with this property occurs when a user selects a file. This event can be

cancelled.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()>

<C1CategoryAttribute("Client-Side Events")>

<C1DescriptionAttribute(Key="C1Upload.OnClientChange", Description="The event

associated with this property occurs when a user selects a file. This event

can be cancelled.")>

<WidgetEventAttribute("ev, data")>

<WidgetOptionNameAttribute("change")>

<LayoutAttribute(LayoutType.Behavior)>

Public Property OnClientChange As System.String

C#

[System.ComponentModel.DefaultValue()]

[C1Category("Client-Side Events")]

[C1Description(Key="C1Upload.OnClientChange", Description="The event

associated with this property occurs when a user selects a file. This event

can be cancelled.")]

[WidgetEvent("ev, data")]

[WidgetOptionName("change")]

[Layout(LayoutType.Behavior)]

public System.string OnClientChange {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

OnClientComplete Property The event associated with this property occurs when a file upload is complete.

Syntax

Visual Basic (Declaration)

<C1DescriptionAttribute(Key="C1Upload.OnClientComplete", Description="The

event associated with this property occurs when a file upload is complete.")>

<WidgetEventAttribute("ev, data")>

<WidgetOptionNameAttribute("complete")>

<LayoutAttribute(LayoutType.Behavior)>

<System.ComponentModel.DefaultValueAttribute()>

<C1CategoryAttribute("Client-Side Events")>

Public Property OnClientComplete As System.String

C#

[C1Description(Key="C1Upload.OnClientComplete", Description="The event

associated with this property occurs when a file upload is complete.")]

[WidgetEvent("ev, data")]

[WidgetOptionName("complete")]

[Layout(LayoutType.Behavior)]

[System.ComponentModel.DefaultValue()]

[C1Category("Client-Side Events")]

public System.string OnClientComplete {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

OnClientProgress Property The event associated with this property occurs when a file is uploading.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()>

<WidgetEventAttribute("ev, data")>

<WidgetOptionNameAttribute("progress")>

<LayoutAttribute(LayoutType.Behavior)>

<C1CategoryAttribute("Client-Side Events")>

<C1DescriptionAttribute(Key="C1Upload.OnClientProgress", Description="The

event associated with this property occurs when a file is uploading.")>

Public Property OnClientProgress As System.String

C#

[System.ComponentModel.DefaultValue()]

[WidgetEvent("ev, data")]

[WidgetOptionName("progress")]

[Layout(LayoutType.Behavior)]

[C1Category("Client-Side Events")]

[C1Description(Key="C1Upload.OnClientProgress", Description="The event

associated with this property occurs when a file is uploading.")]

public System.string OnClientProgress {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

OnClientTotalComplete Property The event associated with this property occurs when the uploadAll button is clicked and the file

upload is complete.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()>

<C1DescriptionAttribute(Key="C1Upload.OnClientTotalComplete",

Description="The event associated with this property occurs when the

uploadAll button is clicked and the file upload is complete.")>

<WidgetOptionNameAttribute("totalComplete")>

<LayoutAttribute(LayoutType.Behavior)>

<WidgetEventAttribute("ev")>

<C1CategoryAttribute("Client-Side Events")>

Public Property OnClientTotalComplete As System.String

C#

[System.ComponentModel.DefaultValue()]

[C1Description(Key="C1Upload.OnClientTotalComplete", Description="The event

associated with this property occurs when the uploadAll button is clicked and

the file upload is complete.")]

[WidgetOptionName("totalComplete")]

[Layout(LayoutType.Behavior)]

[WidgetEvent("ev")]

[C1Category("Client-Side Events")]

public System.string OnClientTotalComplete {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

OnClientTotalProgress Property The event associated with this property occurs when click the uploadAll button and file

uploading.

Syntax

Visual Basic (Declaration)

<WidgetEventAttribute("ev, data")>

<System.ComponentModel.DefaultValueAttribute()>

<WidgetOptionNameAttribute("totalProgress")>

<LayoutAttribute(LayoutType.Behavior)>

<C1DescriptionAttribute(Key="C1Upload.OnClientTotalProgress",

Description="The event associated with this property occurs when click the

uploadAll button and file uploading.")>

<C1CategoryAttribute("Client-Side Events")>

Public Property OnClientTotalProgress As System.String

C#

[WidgetEvent("ev, data")]

[System.ComponentModel.DefaultValue()]

[WidgetOptionName("totalProgress")]

[Layout(LayoutType.Behavior)]

[C1Description(Key="C1Upload.OnClientTotalProgress", Description="The event

associated with this property occurs when click the uploadAll button and file

uploading.")]

[C1Category("Client-Side Events")]

public System.string OnClientTotalProgress {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

OnClientTotalUpload Property The event associated with this property occurs when the uploadAll button is clicked. This event

can be cancelled.

Syntax

Visual Basic (Declaration)

<WidgetOptionNameAttribute("totalUpload")>

<C1CategoryAttribute("Client-Side Events")>

<WidgetEventAttribute("ev")>

<System.ComponentModel.DefaultValueAttribute()>

<LayoutAttribute(LayoutType.Behavior)>

<C1DescriptionAttribute(Key="C1Upload.OnClientTotalUpload", Description="The

event associated with this property occurs when the uploadAll button is

clicked. This event can be cancelled.")>

Public Property OnClientTotalUpload As System.String

C#

[WidgetOptionName("totalUpload")]

[C1Category("Client-Side Events")]

[WidgetEvent("ev")]

[System.ComponentModel.DefaultValue()]

[Layout(LayoutType.Behavior)]

[C1Description(Key="C1Upload.OnClientTotalUpload", Description="The event

associated with this property occurs when the uploadAll button is clicked.

This event can be cancelled.")]

public System.string OnClientTotalUpload {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

OnClientUpload Property The event associated with this property occurs before the file is uploaded. This event can be

cancelled.

Syntax

Visual Basic (Declaration)

<LayoutAttribute(LayoutType.Behavior)>

<C1CategoryAttribute("Client-Side Events")>

<C1DescriptionAttribute(Key="C1Upload.OnClientUpload", Description="The event

associated with this property occurs before the file is uploaded. This event

can be cancelled.")>

<WidgetEventAttribute("ev, data")>

<System.ComponentModel.DefaultValueAttribute()>

<WidgetOptionNameAttribute("upload")>

Public Property OnClientUpload As System.String

C#

[Layout(LayoutType.Behavior)]

[C1Category("Client-Side Events")]

[C1Description(Key="C1Upload.OnClientUpload", Description="The event

associated with this property occurs before the file is uploaded. This event

can be cancelled.")]

[WidgetEvent("ev, data")]

[System.ComponentModel.DefaultValue()]

[WidgetOptionName("upload")]

public System.string OnClientUpload {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

OnClientValidatedFile Property This event is for the client validatedFile event, when the server ValidatingFile event is fired, the

validating event's information will be sent to client side. User can bind this event to show the

server side validating messages.

Syntax

Visual Basic (Declaration)

<LayoutAttribute(LayoutType.Behavior)>

<C1CategoryAttribute("Client-Side Events")>

<C1DescriptionAttribute(Key="C1Upload.OnClientValidatedFile",

Description="This event is for the client validatedFile event, when the

server ValidatingFile event is fired, the validating event's information will

be sent to client side. User can bind this event to show the server side

validating messages.")>

<WidgetEventAttribute("ev, data")>

<System.ComponentModel.DefaultValueAttribute()>

Public Property OnClientValidatedFile As System.String

C#

[Layout(LayoutType.Behavior)]

[C1Category("Client-Side Events")]

[C1Description(Key="C1Upload.OnClientValidatedFile", Description="This event

is for the client validatedFile event, when the server ValidatingFile event

is fired, the validating event's information will be sent to client side.

User can bind this event to show the server side validating messages.")]

[WidgetEvent("ev, data")]

[System.ComponentModel.DefaultValue()]

public System.string OnClientValidatedFile {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

ShowUploadedFiles Property Gets or sets a value that indicates whether to show uploaded file list after uploaded.

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()>

<LayoutAttribute(LayoutType.Behavior)>

<WidgetOptionAttribute()>

<C1CategoryAttribute("Behavior")>

<C1DescriptionAttribute(Key="C1Upload.ShowUploadedFiles", Description="Gets

or sets a value that indicates whether to show uploaded file list after

uploaded.")>

Public Property ShowUploadedFiles As System.Boolean

C#

[System.ComponentModel.DefaultValue()]

[Layout(LayoutType.Behavior)]

[WidgetOption()]

[C1Category("Behavior")]

[C1Description(Key="C1Upload.ShowUploadedFiles", Description="Gets or sets a

value that indicates whether to show uploaded file list after uploaded.")]

public System.bool ShowUploadedFiles {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

TargetFolder Property Gets or sets the virtual path of the folder where C1Upload will automatically save the valid files

after the upload completes.

Syntax

Visual Basic (Declaration)

<WidgetOptionAttribute()>

<WidgetOptionNameAttribute("folder")>

<LayoutAttribute(LayoutType.Behavior)>

<System.ComponentModel.DefaultValueAttribute()>

<C1DescriptionAttribute(Key="C1Upload.TargetFolder", Description="Gets or

sets the virtual path of the folder where C1Upload will automatically save

the valid files after the upload completes.")>

<C1CategoryAttribute("Behavior")>

Public Property TargetFolder As System.String

C#

[WidgetOption()]

[WidgetOptionName("folder")]

[Layout(LayoutType.Behavior)]

[System.ComponentModel.DefaultValue()]

[C1Description(Key="C1Upload.TargetFolder", Description="Gets or sets the

virtual path of the folder where C1Upload will automatically save the valid

files after the upload completes.")]

[C1Category("Behavior")]

public System.string TargetFolder {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

TempFolder Property Gets or sets the virtual path of the folder in which to place temporary upload files.

Syntax

Visual Basic (Declaration)

<LayoutAttribute(LayoutType.Behavior)>

<WidgetOptionAttribute()>

<System.ComponentModel.DefaultValueAttribute()>

<C1DescriptionAttribute(Key="C1Upload.TempFolder", Description="Gets or sets

the virtual path of the folder in which to place temporary upload files.")>

<C1CategoryAttribute("Behavior")>

Public Property TempFolder As System.String

C#

[Layout(LayoutType.Behavior)]

[WidgetOption()]

[System.ComponentModel.DefaultValue()]

[C1Description(Key="C1Upload.TempFolder", Description="Gets or sets the

virtual path of the folder in which to place temporary upload files.")]

[C1Category("Behavior")]

public System.string TempFolder {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

ValidFileExtensions Property Gets or sets the array of allowed file extensions.

Syntax

Visual Basic (Declaration)

<System.Web.UI.PersistenceModeAttribute(PersistenceMode.Attribute)>

<C1DescriptionAttribute(Key="C1Upload.ValidFileExtensions", Description="Gets

or sets the array of allowed file extensions.")>

<TypeConverterAttribute("System.Web.UI.WebControls.StringArrayConverter,

System.Web, Version=4.0.0.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a")>

<LayoutAttribute(LayoutType.Misc)>

<C1CategoryAttribute("Behavior")>

Public Property ValidFileExtensions As System.String()

C#

[System.Web.UI.PersistenceMode(PersistenceMode.Attribute)]

[C1Description(Key="C1Upload.ValidFileExtensions", Description="Gets or sets

the array of allowed file extensions.")]

[TypeConverter("System.Web.UI.WebControls.StringArrayConverter, System.Web,

Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]

[Layout(LayoutType.Misc)]

[C1Category("Behavior")]

public System.string[] ValidFileExtensions {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

ValidMimeTypes Property Gets or sets the array of allowed mime types.

Syntax

Visual Basic (Declaration)

<TypeConverterAttribute("System.Web.UI.WebControls.StringArrayConverter,

System.Web, Version=4.0.0.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a")>

<System.Web.UI.PersistenceModeAttribute(PersistenceMode.Attribute)>

<C1DescriptionAttribute(Key="C1Upload.ValidMimeTypes", Description="Gets or

sets the array of allowed mime types.")>

<C1CategoryAttribute("Behavior")>

<LayoutAttribute(LayoutType.Misc)>

Public Property ValidMimeTypes As System.String()

C#

[TypeConverter("System.Web.UI.WebControls.StringArrayConverter, System.Web,

Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]

[System.Web.UI.PersistenceMode(PersistenceMode.Attribute)]

[C1Description(Key="C1Upload.ValidMimeTypes", Description="Gets or sets the

array of allowed mime types.")]

[C1Category("Behavior")]

[Layout(LayoutType.Misc)]

public System.string[] ValidMimeTypes {get; set;}

See Also

Reference

C1Upload Class

C1Upload Members

Events For a list of all members of this type, see C1Upload members.

Public Events

Name Description

DataBinding (Inherited from System.Web.UI.Control)

Disposed (Inherited from System.Web.UI.Control)

Init (Inherited from System.Web.UI.Control)

Load (Inherited from System.Web.UI.Control)

PreRender (Inherited from System.Web.UI.Control)

Unload (Inherited from System.Web.UI.Control)

ValidatingFile Occurs when validating the uploaded file.

Top

See Also

Reference

C1Upload Class

C1.Web.Wijmo.Controls.C1Upload Namespace

ValidatingFile Event Occurs when validating the uploaded file.

Syntax

Visual Basic (Declaration)

<C1DescriptionAttribute(Key="C1Upload.ValidatingFile", Description="Occurs

when validating the uploaded file.")>

Public Event ValidatingFile As ValidateFileEventHandler

C#

[C1Description(Key="C1Upload.ValidatingFile", Description="Occurs when

validating the uploaded file.")]

public event ValidateFileEventHandler ValidatingFile

Event Data

The event handler receives an argument of type ValidateFileEventArgs containing data related

to this event. The following ValidateFileEventArgs properties provide information specific to

this event.

Property Description

IsValid Gets or sets whether the specified C1FileInfo passed validation.

Message Gets or sets the message if C1FileInfo failed validation.

UploadedFile The C1FileInfo that contains data about the uploaded file. (Inherited from

C1.Web.Wijmo.Controls.C1Upload.UploadedFileEventArgs)

See Also

Reference

C1Upload Class

C1Upload Members

LocalizationOption Object Model

Syntax

Visual Basic (Declaration)

Public Class LocalizationOption

Inherits C1.Web.Wijmo.Controls.Settings

C#

public class LocalizationOption : C1.Web.Wijmo.Controls.Settings

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.LocalizationOption

See Also

Reference

LocalizationOption Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Overview

Object Model

Syntax

Visual Basic (Declaration)

Public Class LocalizationOption

Inherits C1.Web.Wijmo.Controls.Settings

C#

public class LocalizationOption : C1.Web.Wijmo.Controls.Settings

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.LocalizationOption

See Also

Reference

LocalizationOption Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Members The following tables list the members exposed by LocalizationOption.

Public Constructors

Name Description

LocalizationOption Constructor

Top

Public Properties

Name Description

Cancel

CancelAll

Upload

UploadAll

UploadFiles

Top

See Also

Reference

LocalizationOption Class

C1.Web.Wijmo.Controls.C1Upload Namespace

LocalizationOption Constructor

Syntax

Visual Basic (Declaration)

Public Function New()

C#

public LocalizationOption()

See Also

Reference

LocalizationOption Class

LocalizationOption Members

Properties For a list of all members of this type, see LocalizationOption members.

Public Properties

Name Description

Cancel

CancelAll

Upload

UploadAll

UploadFiles

Top

See Also

Reference

LocalizationOption Class

C1.Web.Wijmo.Controls.C1Upload Namespace

Cancel Property

Syntax

Visual Basic (Declaration)

<WidgetOptionAttribute()>

<System.ComponentModel.DefaultValueAttribute()>

Public Property Cancel As System.String

C#

[WidgetOption()]

[System.ComponentModel.DefaultValue()]

public System.string Cancel {get; set;}

See Also

Reference

LocalizationOption Class

LocalizationOption Members

CancelAll Property

Syntax

Visual Basic (Declaration)

<WidgetOptionAttribute()>

<System.ComponentModel.DefaultValueAttribute()>

Public Property CancelAll As System.String

C#

[WidgetOption()]

[System.ComponentModel.DefaultValue()]

public System.string CancelAll {get; set;}

See Also

Reference

LocalizationOption Class

LocalizationOption Members

Upload Property

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()>

<WidgetOptionAttribute()>

Public Property Upload As System.String

C#

[System.ComponentModel.DefaultValue()]

[WidgetOption()]

public System.string Upload {get; set;}

See Also

Reference

LocalizationOption Class

LocalizationOption Members

UploadAll Property

Syntax

Visual Basic (Declaration)

<WidgetOptionAttribute()>

<System.ComponentModel.DefaultValueAttribute()>

Public Property UploadAll As System.String

C#

[WidgetOption()]

[System.ComponentModel.DefaultValue()]

public System.string UploadAll {get; set;}

See Also

Reference

LocalizationOption Class

LocalizationOption Members

UploadFiles Property

Syntax

Visual Basic (Declaration)

<System.ComponentModel.DefaultValueAttribute()>

<WidgetOptionAttribute()>

Public Property UploadFiles As System.String

C#

[System.ComponentModel.DefaultValue()]

[WidgetOption()]

public System.string UploadFiles {get; set;}

See Also

Reference

LocalizationOption Class

LocalizationOption Members

UploadedFileEventArgs Provides data for the FileExists event.

Object Model

Syntax

Visual Basic (Declaration)

Public Class UploadedFileEventArgs

Inherits System.EventArgs

C#

public class UploadedFileEventArgs : System.EventArgs

Inheritance Hierarchy

System.Object

System.EventArgs

C1.Web.Wijmo.Controls.C1Upload.UploadedFileEventArgs

C1.Web.Wijmo.Controls.C1Upload.ValidateFileEventArgs

See Also

Reference

UploadedFileEventArgs Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Overview Provides data for the FileExists event.

Object Model

Syntax

Visual Basic (Declaration)

Public Class UploadedFileEventArgs

Inherits System.EventArgs

C#

public class UploadedFileEventArgs : System.EventArgs

Inheritance Hierarchy

System.Object

System.EventArgs

C1.Web.Wijmo.Controls.C1Upload.UploadedFileEventArgs

C1.Web.Wijmo.Controls.C1Upload.ValidateFileEventArgs

See Also

Reference

UploadedFileEventArgs Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Members The following tables list the members exposed by UploadedFileEventArgs.

Public Properties

Name Description

UploadedFile The C1FileInfo that contains data about the uploaded file.

Top

See Also

Reference

UploadedFileEventArgs Class

C1.Web.Wijmo.Controls.C1Upload Namespace

Properties For a list of all members of this type, see UploadedFileEventArgs members.

Public Properties

Name Description

UploadedFile The C1FileInfo that contains data about the uploaded file.

Top

See Also

Reference

UploadedFileEventArgs Class

C1.Web.Wijmo.Controls.C1Upload Namespace

UploadedFile Property The C1FileInfo that contains data about the uploaded file.

Syntax

Visual Basic (Declaration)

Public ReadOnly Property UploadedFile As C1FileInfo

C#

public C1FileInfo UploadedFile {get;}

See Also

Reference

UploadedFileEventArgs Class

UploadedFileEventArgs Members

UploadModule HttpModule for C1Upload to handle http requests.

Object Model

Syntax

Visual Basic (Declaration)

Public Class UploadModule

C#

public class UploadModule

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.UploadModule

See Also

Reference

UploadModule Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Overview HttpModule for C1Upload to handle http requests.

Object Model

Syntax

Visual Basic (Declaration)

Public Class UploadModule

C#

public class UploadModule

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.UploadModule

See Also

Reference

UploadModule Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Members The following tables list the members exposed by UploadModule.

Public Constructors

Name Description

UploadModule Constructor Initializes a new instance of the UploadModule class.

Top

See Also

Reference

UploadModule Class

C1.Web.Wijmo.Controls.C1Upload Namespace

UploadModule Constructor Initializes a new instance of the UploadModule class.

Syntax

Visual Basic (Declaration)

Public Function New()

C#

public UploadModule()

See Also

Reference

UploadModule Class

UploadModule Members

UploadProgress Class that wraps the data of the uploading progress.

Object Model

Syntax

Visual Basic (Declaration)

Public Class UploadProgress

C#

public class UploadProgress

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.UploadProgress

See Also

Reference

UploadProgress Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Overview Class that wraps the data of the uploading progress.

Object Model

Syntax

Visual Basic (Declaration)

Public Class UploadProgress

C#

public class UploadProgress

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.UploadProgress

See Also

Reference

UploadProgress Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Members The following tables list the members exposed by UploadProgress.

Public Properties

Name Description

Active Gets a value that indicates whether the session is active.

CurrentFile Gets the file that is currently uploading.

EllapsedTime Gets the elapsed time in second.

IsValid

Message

Progress Gets the progress value ranging from 0.0 to 1.0.

ReceivedBytes Gets the number of bytes received during upload

RemainingTime Gets the amount of time remaining for the upload in seconds.

Speed Gets the upload speed.

TotalBytes Gets the total number of bytes received during upload.

Top

See Also

Reference

UploadProgress Class

C1.Web.Wijmo.Controls.C1Upload Namespace

Properties For a list of all members of this type, see UploadProgress members.

Public Properties

Name Description

Active Gets a value that indicates whether the session is active.

CurrentFile Gets the file that is currently uploading.

EllapsedTime Gets the elapsed time in second.

IsValid

Message

Progress Gets the progress value ranging from 0.0 to 1.0.

ReceivedBytes Gets the number of bytes received during upload

RemainingTime Gets the amount of time remaining for the upload in seconds.

Speed Gets the upload speed.

TotalBytes Gets the total number of bytes received during upload.

Top

See Also

Reference

UploadProgress Class

C1.Web.Wijmo.Controls.C1Upload Namespace

Active Property Gets a value that indicates whether the session is active.

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

Public ReadOnly Property Active As System.Boolean

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

public System.bool Active {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

CurrentFile Property Gets the file that is currently uploading.

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

Public ReadOnly Property CurrentFile As System.String

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

public System.string CurrentFile {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

EllapsedTime Property Gets the elapsed time in second.

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

Public ReadOnly Property EllapsedTime As System.Double

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

public System.double EllapsedTime {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

IsValid Property

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=False)>

Public ReadOnly Property IsValid As System.Boolean

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=false)]

public System.bool IsValid {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

Message Property

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

Public ReadOnly Property Message As System.String

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

public System.string Message {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

Progress Property Gets the progress value ranging from 0.0 to 1.0.

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

Public ReadOnly Property Progress As System.Double

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

public System.double Progress {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

ReceivedBytes Property Gets the number of bytes received during upload

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

Public ReadOnly Property ReceivedBytes As System.Integer

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

public System.int ReceivedBytes {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

RemainingTime Property Gets the amount of time remaining for the upload in seconds.

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

Public ReadOnly Property RemainingTime As System.Double

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

public System.double RemainingTime {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

Speed Property Gets the upload speed.

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

Public ReadOnly Property Speed As System.Double

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

public System.double Speed {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

TotalBytes Property Gets the total number of bytes received during upload.

Syntax

Visual Basic (Declaration)

<JsonAttribute(IsSerializableToJson=True, IsSkipIfEmpty=True)>

Public ReadOnly Property TotalBytes As System.Integer

C#

[Json(IsSerializableToJson=true, IsSkipIfEmpty=true)]

public System.int TotalBytes {get;}

See Also

Reference

UploadProgress Class

UploadProgress Members

UploadProgressHandler IHttpHandler for retrieving the progress data from the client side.

Object Model

Syntax

Visual Basic (Declaration)

Public Class UploadProgressHandler

C#

public class UploadProgressHandler

Remarks

This class is not proposed to be used by user.

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.UploadProgressHandler

See Also

Reference

UploadProgressHandler Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Overview IHttpHandler for retrieving the progress data from the client side.

Object Model

Syntax

Visual Basic (Declaration)

Public Class UploadProgressHandler

C#

public class UploadProgressHandler

Remarks

This class is not proposed to be used by user.

Inheritance Hierarchy

System.Object

C1.Web.Wijmo.Controls.C1Upload.UploadProgressHandler

See Also

Reference

UploadProgressHandler Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Members The following tables list the members exposed by UploadProgressHandler.

Public Constructors

Name Description

UploadProgressHandler Constructor Initializes a new instance of the

UploadProgressHandler class.

Top

See Also

Reference

UploadProgressHandler Class

C1.Web.Wijmo.Controls.C1Upload Namespace

UploadProgressHandler Constructor Initializes a new instance of the UploadProgressHandler class.

Syntax

Visual Basic (Declaration)

Public Function New()

C#

public UploadProgressHandler()

See Also

Reference

UploadProgressHandler Class

UploadProgressHandler Members

ValidateFileEventArgs Provides data for the ValidatingFile event.

Object Model

Syntax

Visual Basic (Declaration)

Public Class ValidateFileEventArgs

Inherits UploadedFileEventArgs

C#

public class ValidateFileEventArgs : UploadedFileEventArgs

Inheritance Hierarchy

System.Object

System.EventArgs

C1.Web.Wijmo.Controls.C1Upload.UploadedFileEventArgs

C1.Web.Wijmo.Controls.C1Upload.ValidateFileEventArgs

See Also

Reference

ValidateFileEventArgs Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Overview Provides data for the ValidatingFile event.

Object Model

Syntax

Visual Basic (Declaration)

Public Class ValidateFileEventArgs

Inherits UploadedFileEventArgs

C#

public class ValidateFileEventArgs : UploadedFileEventArgs

Inheritance Hierarchy

System.Object

System.EventArgs

C1.Web.Wijmo.Controls.C1Upload.UploadedFileEventArgs

C1.Web.Wijmo.Controls.C1Upload.ValidateFileEventArgs

See Also

Reference

ValidateFileEventArgs Members

C1.Web.Wijmo.Controls.C1Upload Namespace

Members The following tables list the members exposed by ValidateFileEventArgs.

Public Properties

Name Description

IsValid Gets or sets whether the specified C1FileInfo passed validation.

Message Gets or sets the message if C1FileInfo failed validation.

UploadedFile The C1FileInfo that contains data about the uploaded file. (Inherited from

C1.Web.Wijmo.Controls.C1Upload.UploadedFileEventArgs)

Top

See Also

Reference

ValidateFileEventArgs Class

C1.Web.Wijmo.Controls.C1Upload Namespace

Properties For a list of all members of this type, see ValidateFileEventArgs members.

Public Properties

Name Description

IsValid Gets or sets whether the specified C1FileInfo passed validation.

Message Gets or sets the message if C1FileInfo failed validation.

UploadedFile The C1FileInfo that contains data about the uploaded file. (Inherited from

C1.Web.Wijmo.Controls.C1Upload.UploadedFileEventArgs)

Top

See Also

Reference

ValidateFileEventArgs Class

C1.Web.Wijmo.Controls.C1Upload Namespace

IsValid Property Gets or sets whether the specified C1FileInfo passed validation.

Syntax

Visual Basic (Declaration)

Public Property IsValid As System.Boolean

C#

public System.bool IsValid {get; set;}

See Also

Reference

ValidateFileEventArgs Class

ValidateFileEventArgs Members

Message Property Gets or sets the message if C1FileInfo failed validation.

Syntax

Visual Basic (Declaration)

Public Property Message As System.String

C#

public System.string Message {get; set;}

See Also

Reference

ValidateFileEventArgs Class

ValidateFileEventArgs Members

Delegates

UploadedFileEventHandler The source of the event.

A UploadedFileEventArgs that contains the event data.

Represents the method that will handle the FileExists event.

Syntax

Visual Basic (Declaration)

Public Delegate Sub UploadedFileEventHandler( _

ByVal sender As System.Object, _

ByVal e As UploadedFileEventArgs _

)

C#

public delegate void UploadedFileEventHandler(

System.object sender,

UploadedFileEventArgs e

)

Parameters

sender

The source of the event.

e

A UploadedFileEventArgs that contains the event data.

See Also

Reference

UploadedFileEventHandler Members

C1.Web.Wijmo.Controls.C1Upload Namespace

ValidateFileEventHandler The source of the event.

A ValidateFileEventArgs that contains the event data.

Represents the method that will handle the ValidatingFile event.

Syntax

Visual Basic (Declaration)

Public Delegate Sub ValidateFileEventHandler( _

ByVal sender As System.Object, _

ByVal e As ValidateFileEventArgs _

)

C#

public delegate void ValidateFileEventHandler(

System.object sender,

ValidateFileEventArgs e

)

Parameters

sender

The source of the event.

e

A ValidateFileEventArgs that contains the event data.

See Also

Reference

ValidateFileEventHandler Members

C1.Web.Wijmo.Controls.C1Upload Namespace