Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
ASP.NET Simple File Upload Function
Author:
Jones Hansen
E-mail:
Click to e-mail author
Website:
http://www.blog.0tutor.com
Submitted:
10/13/2007
Version:
ASP.NET 2.0
Compatibility:
ASP.NET 2.0
Category:
File Manipulation
Views:
18905
This is why I love asp.net. This example shows how simple everything is, how you can upload a file to your server through a website with only a few lines of code.
Declarations:
remember to import the system.file namespace Also you will have to add a upload file server control to your html code. Like this.
Code:
If FileUpload1.HasFile Then FileUpload1.SaveAs(Server.MapPath("The_Name_Of_The_File")) End If
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement