473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem while File Uploading Using AJAX

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
1 1363
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: JMB | last post by:
Hello, I was wondering if anyone knew of any projects extending the inline upload progress bar to utilize an inpage image uploader with bar, without having to refresh or go to a seperate page,...
2
by: Igor | last post by:
Hi I'm writing script using AJAX and PHP to upload files. I'm trying to create progress bar to show how many bytes have been already uploaded to server. Can I get the total file size (using...
1
by: Grzegorz ¦lusarek | last post by:
Hi all. I have situation that i use layers in my site and have to upload file from form on that layer. I try used AJAX it failed, when I do standard submit it's failed too, so I hear that solution...
4
by: SammyBar | last post by:
Hi all, I wonder is it possible to upload the content of an <imgfield to a server. The content of the <imgwas downloaded from a web site different from the one it should be uploaded. The image...
1
by: udaypawar | last post by:
I wants to create a functionality of multiple file uploads using Ajax but don't know how to post using Ajax. I have searched almost everywhere possible but can't get any answer. I wants to make a...
0
by: wasif | last post by:
I am trying to upload file using ajax and php but having some problems. it always says that there was a problem and file is not uploaded. here is the code form and ajax code <!DOCTYPE html...
3
by: dreamznatcher | last post by:
Hello, I found a script here: http://www.webtoolkit.info/ajax-file-upload.html which supposedly allows you to upload files using AJAX (I'm not an expert). The site claims it's the best way to...
14
by: Tom Cole | last post by:
I have a rather complicated business application that uses Ajax. Part of this form requires uploading documents, which I cannot do using Ajax, so I post the form to an IFrame. This part works just...
1
vikysaran
by: vikysaran | last post by:
Hello, i'm getting few error on my AJAX enabled application when i'm uploading it to GoDaddy server. Its firsttime I'm using godaddy hosting. can anybody send me web.config file that's working on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.