The approach worked for standard HTML and VB. We utilize C# and server
side controls. Do you have an example of a button being pressed inside
a form and that exact text being displayed?
The following will display the text "Please Wait..." Each form load --
How would you approach it if you only wanted it to display when you hit
the button?
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="PleaseWaitTestVB.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<%
Response.Buffer = True
%>
<form id="Form1" method="post" runat="server">
<script>
<!--
if (document.all)
{
document.write("<span id=w>Please");
document.write(" wait...</span>");
}
//-->
</script>
<%
Response.Flush()
%>
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 40px; POSITION:
absolute; TOP: 128px" runat="server"
Text="Button"></asp:Button>
<%
' put your long-running processes here.
' this should be enough to demonstrate:
Dim i as Integer
Dim x as Integer
for i = 1 to 1000000
x = x + 1
next
%>
<script>
<!--
if (document.all)
{
document.all("w").style.display = 'none';
}
//-->
</script>
</form>
</body>
</HTML>
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!