FileUpload control of ASP. NET 2.0 advanced control

Source: Internet
Author: User

In applications, users are often allowed to upload files to the web server. Although this function can be completed in ASP. NET 1.x, it is easier to use the FileUpload control in ASP. NET 2.0.

This control makes it easier for users to browse and select files for upload. It contains a browse button and a text box for entering file names. If you enter a fully qualified file name in the text box, you can call the SaveAs method of FileUpload to save the file to the disk, whether you enter it directly or click the Browse button.

In addition to the standard members inherited from the WebControl class, the FileUpload control also exposes several read-only attributes listed in tables 5-8 and 5-9.

Table 5-8 attributes of the FileUpload Control

Name Type Read Write Description
<

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.