Tips Station Asp.net Article Seo Articles
Tutorials Code Samples
›  Home
›  Mission
›  About us
›  Contact Us
›  Feedback
›  Terms & Condition
Asp Articles
IT Solutions
 
› ASP.NET

› Programming Tips

› Ajax

› Asp

› ADO.NET

› Databases

› SEO

› CSS And Designing

› Php

 
Most Viewed Articles
 
› Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

› Change theme dynamically without page refresh in ASP.NET

› Install AJAX On Machines Running Visual Studio 2005

› Creating Pretty Popups Using AJAX

› Simple ASP Image Resize Function

› SQL Server Performance Counters

› ASP.Net Interview Questions And Their Answers

› Encode Url using ASP

› Difference Between DataGrid and GridView in Asp.Net

› Select Specific Value WithIn Drop Down List Or Radio Button List

more...
 
 
Home> Programming Tips
 
ASP.NET Simple File Upload Function
 
You might already know why I love asp.net and why my website is programmed with the .net language, its because its so easy and simple, everything is made for you, you sometimes you might be limited in functions, but then you can make your own and let in inherit functionality else where.

This time you will se how easy it is to upload a file to your server, this is a must have function on every website with has an administrator back-end, cms system etc.

The smart thing about fileupload is that you dont have to connect to a server or anything, cause this will be done as you are already on the server when you are on the website, if you know what I mean.

One more thing, you will need the file upload control, it can be added like this.

<asp:FileUpload ID="FileUpload1" runat="server" />

Well here is the file upload code.



If FileUpload1.HasFile Then
FileUpload1.SaveAs(Server.MapPath("The_Name_Of_The_File"))
End If


As you can see its so simple, you just use saveAs then call the server.mappath which calls the current folder on the webserver and lets you give the file a new name to save it.

That is what I call easy coding.
 
 
Vrp Technologies
 
Serversea Hosting
 
 
Latest Articles
 
› Sending SMS With PHP

› MySQL Join Tutorial

› Make An RSS Feed Using PHP

› Intro To Object: Option Variables

› Design An Online Chat Room With PHP And MySQL

› Create Tell A Friend Script With HTML & PHP

› Benchmark And Optimize PHP Script Speed

› What Kind of DBA Are You?

› SQL Server Performance Counters

› SQL Server Performance Tips

more...
 
Random Articles
 
› Storing and Retrieving Variables From Application Object - Asp

› Editing a DataGrid Control in Asp.net

› Displaying an RSS Feed using ASP

› ASP.Net Interview Questions And Their Answers

› Successful CSS Template Skins

› Discovering Your Google PR (Page Rank) Value

› Select Specific Value WithIn Drop Down List Or Radio Button List

› ASP.Net Tips and Tricks

› Make An RSS Feed Using PHP

› Trapping Errors with the Err Object in ASP

more...
 
Home Mission About us Contact us Feedback Terms Conditions
2008 © Copyright TipsStation. All rights reserved.