Assalamualaykum Wr Br…Today we make tour of the ASP.NET FileUpload Control. Asp.Net FileUpload Control allows users to upload files on the web server. It automatically sets the encoding of the form. It allows the users to browser for and select the file to be uploaded, providing the Browse Button and TextBox for entering the File Name. Once the User has entered the File Name in the TextBox by typing the Name or Browsing, the SaveAs method of the FileUpload Control can be called to save the file to the disk.
The basic syntax of the FileUpload Control is:
The FileUpload Class is derived from WebControl Class, and inherits all its members. There are some read only properties which can be stated as:
The posted File is encapsulated in an object of type HttpPostFile, which could be accessed through the PostedFile Property of the FileUpload Class.
Hope enjoyed this tour…Jazakallah khair