Problem while File Uploading Using AJAX

R

Ram

hi, i'm trying to upload files.

i used <input type=file id=Uploadfile runat=server">.
i have placed the control in Updatepanel(AJAX)

when i'm trying to upload it.. it is showing Object reference is not
set to an instance of an Object.

any suggestions.
 
B

bruce barker

the updatepanel does not support <input type="file"> except under
certain conditions. if a file is selected, you must do a postback, not
an ajax call. this means the submit button is not a trigger for the
panel. if the trigger is selected, then the filename will be lost and
must be reselected when the panel repaints.


this is because ajax cannot upload a file, only a browser submit can.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top