Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 15th, 2008, 06:31 AM
Authorized User
Join Date: Jul 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav gupta
Default file upload control

actually i have two file upload control at first page .
and i want to upload two image. at one button click .for this i have write a coda:

string filepath = "C:\\Uploads";
HttpFileCollection uploadedFiles = Request.Files;

for (int i = 0; i < uploadedFiles.Count; i++)
HttpPostedFile userPostedFile = uploadedFiles[i];
userPostedFile.SaveAs(filepath + "\\" +
System.IO.Path.GetFileName(userPostedFile.FileName ));

but now i want to retrive the images at page third .so tell me .
what should i do.

thanks in advance .


Old July 15th, 2008, 06:45 AM
Authorized User
Join Date: Jun 2006
Posts: 47
Thanks: 0
Thanked 2 Times in 2 Posts

i hope u r storing path in database some where.
If yes then just call that path and hyperlink it to open.

If no then you have to create a file object and read the folder and then files and give hyperlink to path to retrieve.

i hope i make myself clear.

Komila Kalia
Software Developer
Reliance engineering Associates (P) Ltd.

Similar Threads
Thread Thread Starter Forum Replies Last Post
file upload control iamsunil2006 .NET Framework 2.0 1 January 21st, 2008 05:49 AM
File Upload Control surendraparashar ASP.NET 2.0 Professional 6 November 6th, 2007 07:39 AM
File Upload Control retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 October 27th, 2007 09:40 AM
File upload control miltonsnider BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 December 12th, 2006 06:03 AM
file upload control brasi12345 ASP.NET 2.0 Professional 0 May 11th, 2006 05:47 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.