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

› Simple ASP Image Resize Function

› Install AJAX On Machines Running Visual Studio 2005

› ASP.Net Interview Questions And Their Answers

› Creating Pretty Popups Using AJAX

› Encode Url using ASP

› SQL Server Performance Counters

› .NET Data Access Performance Comparison

› UpdatePanel control in Asp.net Ajax

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
 
› Get To The Top 10 Website Search Engine Rank In 5 Easy Steps

› Make An RSS Feed Using PHP

› Editing a DataGrid Control in Asp.net

› Change theme dynamically without page refresh in ASP.NET

› Alternating Row Colors

› Session Object in Asp

› Discovering Your Google PR (Page Rank) Value

› Create Tell A Friend Script With HTML & PHP

› Access Master Page controls from the Content Page - Asp.net

› How to export a GridView to Excel - Asp.net

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