How to get FileUpload to trigger UpdateProgress/ProgressTemplate

I have a FileUpload control that is on an AJAX ASP.NET page.  It is within the UpdatePanel.  In my UpdatePanel I am using the UpdateProgress to display an animated gif that asks the user to please wait.

When I click 'Upload' how do I trigger the UpdateProgress section to work?

Alternatively is there an easier way to (1) either tell the user to please wait or (2) show a progress bar during the upload?

Full working examples with ASPX/AJAX page and code are preferred if possible...
LVL 9
RobertNZanaAsked:
Who is Participating?
 
aibusinesssolutionsConnect With a Mentor Commented:
The FileUpload control does not work with the UpdatePanel.  There are ways to make the Upload button fire a javascript function that will display a "Uploading..." div layer, but I found a pretty nice control that works pretty well.

http://www.obout.com/fup/index.aspx

Alternatively, you could make something with an iFrame and javascript, there are a lot of examples of that floating around the asp.net website.
0
 
RobertNZanaAuthor Commented:
My files might be 1-2gb.  Will this support it?
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
RobertNZanaAuthor Commented:
And I want to be able to give it a CUSTOM filename to save as and run a little custom code (db, etc...) after it uploads.
0
 
aibusinesssolutionsConnect With a Mentor Commented:
Yes, you can upload large files as long as you set the httpruntime up in the web.config file

<httpRuntime
   executionTimeout = "seconds"
   maxRequestLength = "KB" />

If you use the obout control, it works just like a normal fileupload control when the file is finished uploading.

0
 
RobertNZanaAuthor Commented:
You peaked my interest with the obout tools.  So, these work good with ASP.NET and are EASY to implement?  I will be uploading files up to 2gb...
0
 
aibusinesssolutionsCommented:
Yes, I've used a few of their controls, and they have all been fairly easy to implement.  Most are just dll files that you add to your toolbox as a control, and drop it right on your form.
0
 
RobertNZanaAuthor Commented:
Do you know if the file upload tool will allow me to...

1.  run custom code when user clicks 'upload' (save as custom filename, add some info to db, etc)
2.  upload file up to 2gb in size?

Is their licensing really that simple & clearcut, or is there hidden fees etc?

Thanks!
0
 
aibusinesssolutionsCommented:
Yes, after the file is finished uploading, you can run custom code on it.

You can upload files up to 2.4 gigs I believe, or whatever the max is that IIS can handle.

You can download and try it out locally without purchasing a license; and yes, a single developer license for 1 developer, unlimited domains, unlimited servers is $99, or $199 for the suite of controls.
0
 
RobertNZanaAuthor Commented:
Thanks.  And their support is responsive as well?  I have a student id.  I wonder if they give me a license if I can create websites for clients with it?
0
 
aibusinesssolutionsCommented:
I haven't had to contact support yet, but I've read good reviews.
0
 
valumsConnect With a Mentor Commented:
Hi, you can use my AJAX upload script http://valums.com/ajax-upload/.
It doesn't add any limits, so you will be able to run a custom code when user clicks 'upload' and files up to 2gb.

Here is the demo http://valums.com/wp-content/uploads/ajax-upload/demo-jquery.htm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.