Re: Login Progress Bar
From: Daniel M. Hendricks (dmhendricks_at_despammed.com)
Date: 12/16/04
- Next message: VB Programmer: "Required Field Validation question"
- Previous message: z f: "forms authentication"
- In reply to: Ernie: "Login Progress Bar"
- Next in thread: tomBond: "Re: Login Progress Bar"
- Messages sorted by: [ date ] [ thread ]
Date: 16 Dec 2004 14:03:01 -0800
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
- Next message: VB Programmer: "Required Field Validation question"
- Previous message: z f: "forms authentication"
- In reply to: Ernie: "Login Progress Bar"
- Next in thread: tomBond: "Re: Login Progress Bar"
- Messages sorted by: [ date ] [ thread ]