Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using master pages in my web application, I'm using file upload control in a contentplaceholder page, when I'm trying to upload a file with the fileupload control I'm getting the posted file value as null even though I have the file selected.

I have used the following steps

Step 1
Selected the file in the fileupload control

Step 2
I have clicked on the submit button for saving the data.

Can anybody help me with this?

Thanks in advance
Posted
Updated 14-Jun-10 2:41am
v2

hi,

please mention the code which you are using.

Thanks,
Mahesh Patel
 
Share this answer
 
Comments
rohinideepoo 14-Jun-10 4:19am    
There is a postback occur when clicking on the button. Then the page loads again.
If You are using ajax (Script Manager and UpdatePanel)
You gotta make sure you have a trigger for the FileUpload control
in the UpdatePanel
 
Share this answer
 
Go through the following link:
MSDN: File Upload[^]
Check what you are doing wrong.
 
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