Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: 'Please wait' on long operation?

Reply
Thread Tools

Re: 'Please wait' on long operation?

 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      04-23-2004
Try this
http://www.aspnetpro.com/NewsletterA...200308bm_l.asp

or I used to use this
http://www.darkfalz.com/1058

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"RepStat" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> What is the best way of displaying a 'please wait...calculating' message

to the user, while a long operation, such as database access, is occurring,
on an ASP.NET page?
>
>
> Thanks a lot



 
Reply With Quote
 
 
 
 
Bonj
Guest
Posts: n/a
 
      04-23-2004
Nice! Thanks I'll take a look

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%(E-Mail Removed)...
> Try this
>

http://www.aspnetpro.com/NewsletterA...200308bm_l.asp
>
> or I used to use this
> http://www.darkfalz.com/1058
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "RepStat" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi
> >
> > What is the best way of displaying a 'please wait...calculating' message

> to the user, while a long operation, such as database access, is

occurring,
> on an ASP.NET page?
> >
> >
> > Thanks a lot

>
>



 
Reply With Quote
 
 
 
 
Bonj
Guest
Posts: n/a
 
      04-24-2004
FWIW I've ended up using:

<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="ProgIndicator.ascx.cs" Inherits="JSTimer.ProgIndicator"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<div id="progtext" style="WIDTH: 224px; FONT-FAMILY: Impact; HEIGHT:
20px"></div>
<table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none;
BORDER-LEFT: medium none; BORDER-BOTTOM: medium none"
cellSpacing="0" cellPadding="0">
<tr>
<td id="progcell1" style="WIDTH: 10px; HEIGHT: 20px"></td>
<td style="WIDTH: 15px; HEIGHT: 20px"></td>
<td id="progcell2" style="WIDTH: 10px; HEIGHT: 20px"></td>
<td style="WIDTH: 15px; HEIGHT: 20px"></td>
<td id="progcell3" style="WIDTH: 10px; HEIGHT: 20px"></td>
<td style="WIDTH: 15px; HEIGHT: 20px"></td>
<td id="progcell4" style="WIDTH: 10px; HEIGHT: 20px"></td>
<td style="WIDTH: 15px; HEIGHT: 20px"></td>
<td id="progcell5" style="WIDTH: 10px; HEIGHT: 20px"></td>
<td style="WIDTH: 15px; HEIGHT: 20px"></td>
<td id="progcell6" style="WIDTH: 10px; HEIGHT: 20px"></td>
<td style="WIDTH: 15px; HEIGHT: 20px"></td>
<td id="progcell7" style="WIDTH: 10px; HEIGHT: 20px"></td>
<td style="WIDTH: 15px; HEIGHT: 20px"></td>
<td id="progcell8" style="WIDTH: 10px; HEIGHT: 20px"></td>
<td style="WIDTH: 15px; HEIGHT: 20px"></td>
<td id="progcell9" style="WIDTH: 10px; HEIGHT: 20px"></td>
</tr>
</table>

with the following JavaScript:
var dots = 0;

function ShowWait() {

if((++dots)>9) dots=1;

for(var x=1; x<=9; x++) {

if(x==dots) document.getElementById('progcell'+x).style.backgr oundColor =
'Navy';

else document.getElementById('progcell'+x).style.backgr oundColor =
'SkyBlue'; }

}

function StartShowWait() {

progtext.style.visibility = 'visible';

progtext.innerText = 'Please wait - calculating...';

window.setInterval('ShowWait()',75);

ShowWait();

}

function HideWait(){

progtext.style.visibility = 'hidden';

divdisplay.style.visiblity = 'hidden';

window.clearInterval();

}



This javascript just gets emitted using RegisterStartupScript, along with a
call to the relevant function via the same, doesn't seem

to work if I embed the JavaScript functions in the page in design mode which
is what I wanted, however I've got

another clientside control so I might have it call it as it's the one that
triggers the long operation anyway

so it will be able to call this before it does a postback, which is what I
wanted.



"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%(E-Mail Removed)...
> Try this
>

http://www.aspnetpro.com/NewsletterA...200308bm_l.asp
>
> or I used to use this
> http://www.darkfalz.com/1058
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "RepStat" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi
> >
> > What is the best way of displaying a 'please wait...calculating' message

> to the user, while a long operation, such as database access, is

occurring,
> on an ASP.NET page?
> >
> >
> > Thanks a lot

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Having compilation error: no match for call to (const __gnu_cxx::hash<long long int>) (const long long int&) veryhotsausage C++ 1 07-04-2008 05:41 PM
Use of Long and Long Long Bart C C Programming 27 01-15-2008 05:27 AM
long long and long Mathieu Dutour C Programming 4 07-24-2007 11:15 AM
unsigned long long int to long double Daniel Rudy C Programming 5 09-20-2005 02:37 AM
Assigning unsigned long to unsigned long long George Marsaglia C Programming 1 07-08-2003 05:16 PM



Advertisments