Solved

The best approach for displaying progress to the end user

Posted on 2014-12-01
5
134 Views
Last Modified: 2014-12-03
Hello Experts,

I have an ASP.NET C-Sharp application that is simply used to upload/save a file onto the server. I would like to display progress with percentage complete for large files. I've searched around looking for an easy and efficient approach, but most approaches seem overly unnecessary for what I'm trying to accomplish. Most mention the use of AJAX and JQuery for client/server interaction for a given task. What is the best approach and can anyone lead me to or provide me with a good clean example?

I am currently testing out using IFRAMES to make a call to the server and update the parent window with progress, but though really simple, doesn't seem like the 'proper' way to accomplish this...

Thanks in advance.
0
Comment
Question by:rmartes
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:plusone3055
ID: 40474326
Code Project has a good one That I like to use
I cannot post a  "direct" link to it as it is a Competing Website

but if you were to use google and type in

asp.net  percentage progress bar example

you will find it
http://forums.asp.net/t/1552536.aspx?Progress+Bar+with+Percentage+or+status

in the 2nd response 3rd link :)
0
 

Author Comment

by:rmartes
ID: 40474565
Thanks plusone3055.

This will work as a client-side tool for displaying progress, however...

I think I should have included in my question that I want to indeed know how to get the 'real' completed progress for an ongoing task, in this case, uploading a file...

Can anyone provide a good example of how to retrieve progress from an ongoing server-side task?
0
 
LVL 22

Accepted Solution

by:
plusone3055 earned 500 total points
ID: 40474588
no worries.
my apologies for not understanding clearly.
i know you may not want to use AJAX or JQ but to do it server side IMHO its the best (and most painless) way to go.

there is of course another way in SignalR

http://msdn.microsoft.com/en-us/magazine/hh852586.aspx


but I've used JQ to pass the percentage :(
0
 

Author Closing Comment

by:rmartes
ID: 40478692
Thanks buddy.

Need some time to test, so I'm accepting as answer as it looks like what I need.

Actually ran into this example when reading about SignalR:
http://blog.webdevsamples.com/web-forms-long-running-task-with-progress-bar-using-signalr

Also (not SignalR, but looks easy to implement using http handler):
http://dhtmlx.com/docs/products/dhtmlxVault/
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 40478856
no problem
Cheers
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Icons and Colors for Terms 3 24
Remove greater than sign 3 49
Filename to be appended with DateTimeof Download 3 47
jquery progress bar 3 0
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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

862 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now