[Webinar] Streamline your web hosting managementRegister Today


Passing asp:FileUpload Data for Processing on Another Page

Posted on 2008-01-24
Medium Priority
Last Modified: 2013-12-17
Is it possible for a user to select a file for download using the FileUpload control (in ASP.NET), and then passing that information to another page which has the code to download the file from the user? How would you do this?

Question by:BetaPictoris

Accepted Solution

alivemedia earned 2000 total points
ID: 20735840
You could maybe try and use a session.
First page:
Session("FileUpload") = FileUpload1

Second Page:
Dim objFlieUpload As FileUpload = DirectCast(Session("FileUpload"),FileUpload)

Just a thought that sould be simple to test.

Author Comment

ID: 20736572
Thanks. That pointed me in right direction. The C# equivalent is:

FileUpload objFileUpload = new FileUpload ();
objFileUpload = (FileUpload) Session ["FileUpload"];

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question