See Also

HtmlBoxUpload Class  | HtmlBoxUpload Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerWEB TextBox for ASP.NET

MaxFileSize Property

Dart.PowerWEB.TextBox Namespace > HtmlBoxUpload Class : MaxFileSize Property

Gets or sets the maximum file size (in bytes) that the server will accept when uploading files.

[Visual Basic]
<NotifyParentPropertyAttribute(True)> <DefaultValueAttribute()> Public Property MaxFileSize As Integer
[C#]
[NotifyParentPropertyAttribute(true)] [DefaultValueAttribute()] public int MaxFileSize {get; set;}
[C++]
[NotifyParentPropertyAttribute(true)] [DefaultValueAttribute()] public: __property int get_MaxFileSize(); public: __property void set_MaxFileSize(    int value );
[C++/CLI]
[NotifyParentPropertyAttribute(true)] [DefaultValueAttribute()] public: property int MaxFileSize {    int get();    void set (int value); }

Return Type

The maximum file size (in bytes) that will be accepted by the server when uploading files. The default value is 1048576.

Remarks

If a user attempts to upload a size larger than the value specified here, the file will not be accepted and an error message will be displayed. Set this property to 0 to accept any files. Set the HtmlBoxUpload.UploadEnabled property to false to completely disable file upload.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

See Also

HtmlBoxUpload Class  | HtmlBoxUpload Members


Send comments on this topic.

Documentation version 3.2.0.0.

© 2009 Dart Communications.  All rights reserved.