Asp.net programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this Asp.net and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Asp.net Website by URL, How to Play YouTube Videos in Asp.net by using Jquery , Jquery Change div background on mouseover in asp.net , JQuery UI Datepicker (Calendar) etc.

Sunday, June 4, 2017

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:
  • HtmlInputFile - 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

2 comments:

  1. Its fantastic explaintion lot of information gather it...nice article....
    seo company in Chennai

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

    ReplyDelete