Online Product Info
MaxFileSize Property

Description
The MaxFileSize property allows you indicates the maximum size in Megabytes that the ASP.NET Auto DB control will allow.

Default Value
If the MaxFileSize is not specified, it will default to 3 Megabytes.

Usage
See Listing A for an example of the MaxFileSize property in the Auto DB control tag.

<cc1:AutoDB id="AutoDB1" runat="server" MaxFileSize="3"> </cc1:AutoDB> 
Listing A

Note: ASP.NET Auto DB will automatically detect file fields in your form and upload these files. To accept uploads, your form must have one or more file fields with the runat property set to "server" like so:

<INPUT type="file" id="firstFile" runat="server" NAME="firstFile">

In addition, your form tag must contain encType="multipart/form-data" as shown below:

<FORM name="frmLeadentry" encType="multipart/form-data" method="post" runat="server">

Related Properties

UploadDir

 

© copyright 2004 360 IMPACT. All rights reserved.