473,320 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Login Progress Bar

I have a unique issue...
We are using Microsoft Commerce Server and Content Manager on our
eCommerce Site. I have been requested to display a login status (Pic
that says Please Wait) in a control that is located on multiple pages.
Therefore I need to embed a code segment to be executed when a specific
button is pressed to display the "Please Wait" without having to wait
for the postback to finish.

I am looking to do this in a client side script that is usable by most
browsers. Any assistance or direction would be greatly appreciated.

We are not allowed to use frames (and I agree). The code primarily used
is C#. The following is a code snippet of the button that I need to
capture and execute a client side script:

<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 40px; POSITION:
absolute; TOP: 128px" runat="server"
Text="Button"></asp:Button>

A Plan without Action is a DayDream
Action without a Plan is a Nightmare

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
6 2118
Something like (you can replace the 'Please Wait' text with an image if
you like):

<%@ Page Language="C#" %>
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
btnSubmit.Attributes.Add("onclick",
"document.getElementById('msgWait').style.display= 'block'");
}
private void btnSubmit_Click(Object sender, EventArgs e)
{
// DO SOME TIME CONSUMING CODE HERE
}
</script>

<html><body>

<form runat="server">
<asp:Button id="btnSubmit" runat="server" Text="Submit"
onclick="btnSubmit_Click" /></p>
</form>

<div id="msgWait" style="display:none; color: red"><p>Please wait.
This may take up to a minute...</p></div>

</html></body>

Ernie wrote:
I have a unique issue...
We are using Microsoft Commerce Server and Content Manager on our
eCommerce Site. I have been requested to display a login status (Pic
that says Please Wait) in a control that is located on multiple pages. Therefore I need to embed a code segment to be executed when a specific button is pressed to display the "Please Wait" without having to wait
for the postback to finish.

Daniel M. Hendricks
http://www.danhendricks.com

Nov 19 '05 #2

Hi.

Check the net for code regarding Response.Buffering an
Response.Flush.

It can be done with these :)

-to
-
tomBon
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Nov 19 '05 #3
Thank you,

Initially I looked at using the Response.Buffer and Response.Flush along
with the Document.[Whatever] and these were unable to work in this
scenario. I may be missing something but this specific control is an
embedded HTML control on the Form. The code behind is executing the
validation within commerce server and therefore I am unable to pull it
out of the code behind to run as part of the C# script on the HTML code
segment.

I somehow need to identify that the button (which has an ID on the
ASPNET page) has been clicked (There is already a click event in the
codebehind).

In a nutshell, the login process can take a lot of time and I want to
display an image/text/animated gif to notify the user that the system is
processing and to please wait.

Thank you for your assistance
Walking on Water and Developing Applications from Specifications are
EASY ==> Only when they are FROZEN

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #4
srs
I am also trying to do similar thing like you. I need something that will
tell user to wait, while waiting for query to return the result to display. I
looked at the code provided by Daniel, but my question how the progress page
will know to redirect to result page.

thanks in advance

"Ernie" wrote:
Thank you,

Initially I looked at using the Response.Buffer and Response.Flush along
with the Document.[Whatever] and these were unable to work in this
scenario. I may be missing something but this specific control is an
embedded HTML control on the Form. The code behind is executing the
validation within commerce server and therefore I am unable to pull it
out of the code behind to run as part of the C# script on the HTML code
segment.

I somehow need to identify that the button (which has an ID on the
ASPNET page) has been clicked (There is already a click event in the
codebehind).

In a nutshell, the login process can take a lot of time and I want to
display an image/text/animated gif to notify the user that the system is
processing and to please wait.

Thank you for your assistance
Walking on Water and Developing Applications from Specifications are
EASY ==> Only when they are FROZEN

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #5
srs
I am also trying to do similar thing. I want progress page/bar while wating
for query to return the result to display. My question is how the progree
page/bar will know to redirect the page to the result page?

thanks in advance

"Ernie" wrote:
I have a unique issue...
We are using Microsoft Commerce Server and Content Manager on our
eCommerce Site. I have been requested to display a login status (Pic
that says Please Wait) in a control that is located on multiple pages.
Therefore I need to embed a code segment to be executed when a specific
button is pressed to display the "Please Wait" without having to wait
for the postback to finish.

I am looking to do this in a client side script that is usable by most
browsers. Any assistance or direction would be greatly appreciated.

We are not allowed to use frames (and I agree). The code primarily used
is C#. The following is a code snippet of the button that I need to
capture and execute a client side script:

<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 40px; POSITION:
absolute; TOP: 128px" runat="server"
Text="Button"></asp:Button>

A Plan without Action is a DayDream
Action without a Plan is a Nightmare

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #6

Progress page AND results page is the very same page. You can think thi
like the page having two different "modes": progress showing mode whe
page is doing something, and results showing mode when page ha
finished. The key in this approach is that all is in the same page
you don't do any redirecting (but you could if you need to :)
This is how it works: when request is sent to server, browser begin
waiting for servers response stream. Here buffering is needed, becaus
browser doesn't show the completed page unless the response has arrive
completely. Though the servers response is still in the middle o
transmission and has not completed yet, you can "steal" some amount o
the incoming stream, flush it to browser and thus have the "progres
showing mode" visible. At the same time server continues to send th
response as soon as it gets it ready. When the response has arrived t
browser completely, the page is complete and you can turn "progres
showing mode" (ie. graphics or text) off because it is not needed a
this point. The rest of the page now represents the "results showin
mode".

Remember that all server-side code gets processed first in asp.net,
thus giving you a chance to dynamically generate progress info for th
page. After server-side code processing comes client-side code, ie. an
html-code or client-side scripts.

One hint: if you se graphics with the progress mode, make sure tha
they are as small as possible in bytes so that they would be loade
really fast. What's the point of having heavy, slow loading graphics o
the progress showing mode if the processing gets finished before fanc
graphics reach the browser? ;)

-Tom
-
tomBon
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ernie | last post by:
I am using Commerce Server and during the login phase, it may take a while. I have been requested that if someone is in the progress of loggin in, to display an animated gif stating "Please Wait"....
1
by: beachboy | last post by:
how can pass the login (security info) to secondary application? ASP.NET 1.1 user login to application 1(app1.myapp.com) with their username and password, then they have a link to application 2...
10
by: Victor | last post by:
hi guys. In my project, now I am using a asp.net login control and a customized membership provider to do the form authentication. Now I want some function that user can skip the login form and be...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
3
by: nazgul42 | last post by:
Ok... On my website, I have a login form that submits the information through POST to a php page, but my problem is that my php page is not getting the POST information. I know my form is sending...
3
by: izggles | last post by:
Hi, I would like some help in creating a login area for my clients. I want them to be able to login in to an area where they can see how progress is getting on with there website. I am very new to...
0
by: DanWeaver | last post by:
Hi, Any pointers much appreciated- I just don't know how to progress from here. Using MS SQL server on a shared host (www.joglab.com shows the problem) I am having a problem with logins-...
2
by: =?Utf-8?B?d2R1ZGVr?= | last post by:
I have a website using windows integrated security, with anonymous access turned off. The site is used to query orders from a database and when the search takes a long time, a windows login box...
13
by: Apostle | last post by:
Hi all, after thinking for sometimes, I thought it will be great opportunity to learn if I will start from scratch and build my own register/login system. Here is the thread that I will be posting...
17
by: RRosebury | last post by:
I'm in the process of making a website, I know the basics of PHP etc.. and have a page where a user has to sign up and activiate thier account via e-mail, when they clikc the link it change a field...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.