Click here to Skip to main content
15,609,864 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
Updated 14-Jun-10 2:41am


please mention the code which you are using.

Mahesh Patel
Share this answer
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