Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There is a file upload control on one page and on that page I am calling a popup.
I have to save the file on the server side but not on the popup page.
It has to be saved on button click event which is on the main page.

So please let me know how to save the file in main page code.
Posted
Updated 25-Jan-14 2:17am
v3
Comments
karthik Udhayakumar 25-Jan-14 8:08am    
Hello,
Can you share your code to help you with.
JoCodes 25-Jan-14 11:49am    
Can you make it clear with the question as well as post some relevant code you tried.

 
Share this answer
 
Try this code in asp.net button click:

C#
Fileuploadcontrolid.PostedFile.SaveAs(file name with location);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900