Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to get FileUpload to trigger UpdateProgress/ProgressTemplate

Posted on 2009-02-17
12
Medium Priority
?
3,000 Views
Last Modified: 2012-06-21
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...
0
Comment
Question by:RobertNZana
  • 6
  • 5
12 Comments
 
LVL 15

Accepted Solution

by:
aibusinesssolutions earned 300 total points
ID: 23664203
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
 
LVL 9

Author Comment

by:RobertNZana
ID: 23665227
My files might be 1-2gb.  Will this support it?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Author Comment

by:RobertNZana
ID: 23665231
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
 
LVL 15

Assisted Solution

by:aibusinesssolutions
aibusinesssolutions earned 300 total points
ID: 23665250
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
 
LVL 9

Author Comment

by:RobertNZana
ID: 23667010
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
 
LVL 15

Expert Comment

by:aibusinesssolutions
ID: 23667023
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
 
LVL 9

Author Comment

by:RobertNZana
ID: 23667166
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
 
LVL 15

Expert Comment

by:aibusinesssolutions
ID: 23667192
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
 
LVL 9

Author Comment

by:RobertNZana
ID: 23670663
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
 
LVL 15

Expert Comment

by:aibusinesssolutions
ID: 23670787
I haven't had to contact support yet, but I've read good reviews.
0
 

Assisted Solution

by:valums
valums earned 75 total points
ID: 23742860
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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question