Click here to Skip to main content
16,016,087 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

Currently i am facing an issue while uploading a file and need ur expert comments or code(if possible) for the same.

My Problem is that
"I want to upload a file into the database from a webpage using Ajax.
I am having 3 tabpanels currently in the tabcontainer and in one tabpanel using the update Progress and Update panel trying to upload the file(using FileUpload control).But FileUpload.hasFile is returning 'false',So unable to upload the file.

What i exactly need to do is " to upload the file into database on clicking the load button(Also on UI) and during that time the Progress Bar should come on the screen while a Ajax Postback should occur."
Posted
Comments
Tejas Vaishnav 2-Nov-11 9:35am    
If you want to comment on any answers then please use a "Have a Question or Comment?" Not try to post a solution....

 
Share this answer
 
Thanx for ur reply.But this does not solve my problem.
As i required the progess bar working during the file upload in the tabcontainer.
 
Share this answer
 
Comments
Tejas Vaishnav 2-Nov-11 9:34am    
If you want to comment on any answers then please use a "Have a Question or Comment?"

Not try to post a solution....
Member 8244101 2-Nov-11 9:39am    
k
For your solution if you use Ajax Update Panel then please put your file upload control out side that update panel....

it will solve your problem...
 
Share this answer
 
File Upload control does not work with asynchronous postback.
So trigger a full postback on button click for fileupload.
 
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