ASP.NET - File Uploading

File Upload control -ASP.NET:



ASP.NET - File Upload options  has two controls that allow users to upload files to the web server. Once the server receives the posted file data, the application can save it, check it, or ignore it. The following controls allow the file uploading:
  • Html InpuFile - an HTML server control
  • FileUpload - and ASP.NET web control
Both controls allow file uploading, but the FileUpload control automatically sets the encoding of the form, whereas the HtmlInputFile does not do so.
In this tutorial, we use the FileUpload control. The FileUpload control allows the user to browse for and select the file to be uploaded, providing a browse button and a text box for entering the filename.
Once, the user has entered the filename in the text box 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 FileUpload is:
<asp:FileUpload ID= "Uploader" runat = "server" />

Example of file upload control





Asp.net related other post:


·                     Understanding controllers in Asp.net MVC
·                     Action Method in Asp.net MVC Controller
·                     Controllers and Action Methods in ASP.NET MVC Appl...
·                     Asp.net Step By Step Working with MVC3
·                     Asp.net with c# example - datetime day of week
·                     Asp.net web Development related Important Post Li...
·                     Why the web.cofig file is very important (The Role...
·                     Validate a date using RangeValidator in asp.net c#...
·                     Example of Asp.net PlaceHolder Server Control
·                     Asp.net PlaceHolder Server Control
·                     C# Coding Conventions (C# Programming Guide)
·                     List of Coding Standard guidelines/checklists for ...
·                     What is the best way to create HTML in C# code
·                     Display Data in HTML Table from Database using Asp...
·                     Templates in Asp.net DataList Control
·                     Introduction of Asp.net Datalist Control

·                     How to bind asp datalist control dynamically

Comments

  1. Best Online Money Earning Tutorials http://www.learnmoneyearning.com/

    ReplyDelete

Post a Comment

Popular posts from this blog