By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 985 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Problem while File Uploading Using AJAX

P: n/a
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.

Aug 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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)
Ram wrote:
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.
Aug 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.