Saturday, 06 September 2008
DotNetSpace, Asp.net 2.0 tutorials and code examples. ajax, log4net...
Home arrow Articles arrow General Articles arrow Simple way to upload files using asp.net 2.0
 
Main Menu
Home
Articles
News
Links
Search








BiraJones




Simple way to upload files using asp.net 2.0 Print E-mail
Tuesday, 24 October 2006
Simple way to upload files:

//1- First create a component called "FileUpload1", then put this code in your .cs file:
...
    if (FileUpload1.HasFile)
    {
        string uploadPath = Server.MapPath("relativefolderpath/uploadedfile.tmp");
        FileUpload1.SaveAs(uploadPath);
    }
...
Last Updated ( Tuesday, 31 October 2006 )
 
< Prev   Next >
Popular
Polls
-->*/?>

Which language will you choose for coding with Visual Studio .NET?
 
-->*/?>

Is ASP.NET better than Java / JSP frameworks?
 

© 2008 DotNetSpace
Joomla! is Free Software released under the GNU/GPL License.