Control that allows to simplify and optimize file uploading using web browser to your ASP.NET Web Server.
For a list of all members of this type, see McHtmlInputFile Members.
System.Object
Control
WebControl
McHtmlInputFile
You should use the McHtmlInputFile server control instead of HtmlInputFile. Use the McHtmlInputFile server control to handle uploading binary or text files from a browser client to the server. File upload works with Microsoft Internet Explorer version 3.02 or later.
Note The Enctype property of an HtmlForm must be set to "multipart/form-data" for this control to work properly
To specify the file to upload, enter the fully path to the file (for example, "C:\MyFiles\Test.txt") in the text box of the control. You can also select the file by clicking the Browse button and then locating it in the Choose file dialog box.
The McHtmlInputFile control does not have a built-in way to post back to the server. To upload the file to the server, use the SaveAs method of the McHttpPostedFile contained in the PostedFile property. This operation is usually done in an event-handling method, such as for a button click.
To simplify development Mediachase.FileUploader.Web.UI.McHtmlFileInput supports full Design-Time view in Visual Studio.NET. You can add it into Visual Studio.NET toolbar and then add it to your webform using drag-and-drop. You can change properties and control will adjust in real-time it's view to the one that will be displayed on web page.
Note To add the control to the Visual Studio .NET toolbox, please do the following:Now when you add the control to your web projects, Visual Studio will automatically add the Mediachase.FileUploader.dll assembly to your web application's bin directory. To deploy the application, all you need to do is copy the content to the live server.
- Open a Web Form (aspx page) in design mode.
- Right-click on the toolbox.
- Select Customize Toolbox.
- Select the .NET Framework Components tab.
- Click Browse....
- Find Mediachase.FileUploader.dll on your local machine, and select Open.
Namespace: Mediachase.FileUploader.Web.UI
Assembly: Mediachase.FileUploader (in Mediachase.FileUploader.dll)
McHtmlInputFile Members | Mediachase.FileUploader.Web.UI Namespace