473,287 Members | 1,395 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,287 software developers and data experts.

Ok. I give up! Help please

Hi,
I was following the article
http://msdn.microsoft.com/msdnmag/is...s/default.aspx I
got everything working until I go the the Progress bar section. Here is where
I am stuck.

This is the vb.net code for the wait.aspx page

Public redirectPage As String = ""
Public secondsToWait As String = "0"
Public minutesToWait As String = "0"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

'If Request.QueryString("redirectPage") <> "" Then
' redirectPage = Request.QueryString("redirectPage")
'End If

Dim secondsToWait As String = Request.QueryString("secondsToWait")
Dim minutesToWait As String = Request.QueryString("minutesToWait")

If (minutesToWait <> String.Empty) Then
secondsToWait = "0"
Else
Dim seconds As Integer = Int32.Parse(secondsToWait)
Dim minutes As Integer = seconds / 60

If (seconds Mod 60 = 0) And (minutes > 1) Then
minutesToWait = minutes.ToString()
secondsToWait = "0"
End If

End If
End Sub

This is the html
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="wait.aspx.vb"
Inherits="Webtest.wait"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>wait</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">

<SCRIPT language="javascript">
var i = 0;
function redirectTo(targetPage, querystring, secondsForWaiting,
minutesForWaiting)
{
if (0 < targetPage.length)
{
b1.style.cursor="wait";
location.replace(targetPage + querystring);

if (secondsForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ secondsForWaiting + " seconds...";
timedIterations(secondsForWaiting);
}
else
{
if (minutesForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ minutesForWaiting + " minutes...";
timedIterations(minutesForWaiting * 60);
}
}
}
else
{
ProcessingLabel.innerText = "Page not found."
}
}

function timedIterations(secondsForIterating)
{
incrementalWidth = 800 / secondsForIterating;
if (i <= secondsForIterating + 10)
{
d1.innerText="Elapsed time: " + i + " seconds.";
d2.style.width=i*incrementalWidth;
setTimeout(
"timedIterations(" + secondsForIterating + ");",
1000);
i++;
}
else
{
b1.style.cursor="";
d1.style.visibility = "hidden";
d2.style.visibility = "hidden";
ProcessingLabel.innerText =
"The server is taking longer than "
+ "anticipated to process your request. "
+ "Thank you for your patience. "
+ "You can wait a few minutes longer for "
+ "the process to complete, or you can press "
+ "the back button and try again later...";
}
}
</SCRIPT>


</HEAD>
<body id=b1
onload="redirectTo('<%Response.Write(redirectPage) %>','<%Response.Write(Request.Url.Query)%>','<%Res ponse.Write(secondsToWait)%>','<%Response.Write(mi nutesToWait)%>')">
<form id="Form1" method="post" runat="server">
<asp:Label id="ProcessingLabel" runat="server"
CssClass="DarkMediumSizeText">Processing...</asp:Label>
<p></p>
<DIV id="d1" class="DarkSmallSizeText"></DIV>
<DIV id="d2" style="BACKGROUND-COLOR:red"></DIV>
</form>
</body>
</HTML>
When I call the wait page from my "starttheprocess.aspx" page with this

Response.Redirect("Wait.aspx?redirectPage=" + "ProcessTheData.aspx&Data=" +
TextBox1.Text + "&secondsToWait=30")

I get

Page not found.

Thats from the javascript.

Any ideas? Please.

Thanks


Nov 18 '05 #1
5 1686
Are just pasting the Jscript before the HEAD element in ASP.NET(HTML)?
Or you are registering it?
"Chris" wrote:
Hi,
I was following the article
http://msdn.microsoft.com/msdnmag/is...s/default.aspx I
got everything working until I go the the Progress bar section. Here is where
I am stuck.

This is the vb.net code for the wait.aspx page

Public redirectPage As String = ""
Public secondsToWait As String = "0"
Public minutesToWait As String = "0"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

'If Request.QueryString("redirectPage") <> "" Then
' redirectPage = Request.QueryString("redirectPage")
'End If

Dim secondsToWait As String = Request.QueryString("secondsToWait")
Dim minutesToWait As String = Request.QueryString("minutesToWait")

If (minutesToWait <> String.Empty) Then
secondsToWait = "0"
Else
Dim seconds As Integer = Int32.Parse(secondsToWait)
Dim minutes As Integer = seconds / 60

If (seconds Mod 60 = 0) And (minutes > 1) Then
minutesToWait = minutes.ToString()
secondsToWait = "0"
End If

End If
End Sub

This is the html
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="wait.aspx.vb"
Inherits="Webtest.wait"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>wait</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">

<SCRIPT language="javascript">
var i = 0;
function redirectTo(targetPage, querystring, secondsForWaiting,
minutesForWaiting)
{
if (0 < targetPage.length)
{
b1.style.cursor="wait";
location.replace(targetPage + querystring);

if (secondsForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ secondsForWaiting + " seconds...";
timedIterations(secondsForWaiting);
}
else
{
if (minutesForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ minutesForWaiting + " minutes...";
timedIterations(minutesForWaiting * 60);
}
}
}
else
{
ProcessingLabel.innerText = "Page not found."
}
}

function timedIterations(secondsForIterating)
{
incrementalWidth = 800 / secondsForIterating;
if (i <= secondsForIterating + 10)
{
d1.innerText="Elapsed time: " + i + " seconds.";
d2.style.width=i*incrementalWidth;
setTimeout(
"timedIterations(" + secondsForIterating + ");",
1000);
i++;
}
else
{
b1.style.cursor="";
d1.style.visibility = "hidden";
d2.style.visibility = "hidden";
ProcessingLabel.innerText =
"The server is taking longer than "
+ "anticipated to process your request. "
+ "Thank you for your patience. "
+ "You can wait a few minutes longer for "
+ "the process to complete, or you can press "
+ "the back button and try again later...";
}
}
</SCRIPT>


</HEAD>
<body id=b1
onload="redirectTo('<%Response.Write(redirectPage) %>','<%Response.Write(Request.Url.Query)%>','<%Res ponse.Write(secondsToWait)%>','<%Response.Write(mi nutesToWait)%>')">
<form id="Form1" method="post" runat="server">
<asp:Label id="ProcessingLabel" runat="server"
CssClass="DarkMediumSizeText">Processing...</asp:Label>
<p></p>
<DIV id="d1" class="DarkSmallSizeText"></DIV>
<DIV id="d2" style="BACKGROUND-COLOR:red"></DIV>
</form>
</body>
</HTML>
When I call the wait page from my "starttheprocess.aspx" page with this

Response.Redirect("Wait.aspx?redirectPage=" + "ProcessTheData.aspx&Data=" +
TextBox1.Text + "&secondsToWait=30")

I get

Page not found.

Thats from the javascript.

Any ideas? Please.

Thanks

Nov 18 '05 #2
What is the address of the "page not found". What appears in the address
bar?

Seems like you could reproduce the problem in 2-3 lines of code around the
Response.Redirect, by hard-coding values, to start.

Jeff
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
Hi,
I was following the article
http://msdn.microsoft.com/msdnmag/is...s/default.aspx I got everything working until I go the the Progress bar section. Here is where I am stuck.

This is the vb.net code for the wait.aspx page

Public redirectPage As String = ""
Public secondsToWait As String = "0"
Public minutesToWait As String = "0"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

'If Request.QueryString("redirectPage") <> "" Then
' redirectPage = Request.QueryString("redirectPage")
'End If

Dim secondsToWait As String = Request.QueryString("secondsToWait")
Dim minutesToWait As String = Request.QueryString("minutesToWait")

If (minutesToWait <> String.Empty) Then
secondsToWait = "0"
Else
Dim seconds As Integer = Int32.Parse(secondsToWait)
Dim minutes As Integer = seconds / 60

If (seconds Mod 60 = 0) And (minutes > 1) Then
minutesToWait = minutes.ToString()
secondsToWait = "0"
End If

End If
End Sub

This is the html
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="wait.aspx.vb"
Inherits="Webtest.wait"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>wait</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">

<SCRIPT language="javascript">
var i = 0;
function redirectTo(targetPage, querystring, secondsForWaiting,
minutesForWaiting)
{
if (0 < targetPage.length)
{
b1.style.cursor="wait";
location.replace(targetPage + querystring);

if (secondsForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ secondsForWaiting + " seconds...";
timedIterations(secondsForWaiting);
}
else
{
if (minutesForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ minutesForWaiting + " minutes...";
timedIterations(minutesForWaiting * 60);
}
}
}
else
{
ProcessingLabel.innerText = "Page not found."
}
}

function timedIterations(secondsForIterating)
{
incrementalWidth = 800 / secondsForIterating;
if (i <= secondsForIterating + 10)
{
d1.innerText="Elapsed time: " + i + " seconds.";
d2.style.width=i*incrementalWidth;
setTimeout(
"timedIterations(" + secondsForIterating + ");",
1000);
i++;
}
else
{
b1.style.cursor="";
d1.style.visibility = "hidden";
d2.style.visibility = "hidden";
ProcessingLabel.innerText =
"The server is taking longer than "
+ "anticipated to process your request. "
+ "Thank you for your patience. "
+ "You can wait a few minutes longer for "
+ "the process to complete, or you can press "
+ "the back button and try again later...";
}
}
</SCRIPT>


</HEAD>
<body id=b1
onload="redirectTo('<%Response.Write(redirectPage) %>','<%Response.Write(Requ
est.Url.Query)%>','<%Response.Write(secondsToWait) %>','<%Response.Write(minu
tesToWait)%>')"> <form id="Form1" method="post" runat="server">
<asp:Label id="ProcessingLabel" runat="server"
CssClass="DarkMediumSizeText">Processing...</asp:Label>
<p></p>
<DIV id="d1" class="DarkSmallSizeText"></DIV>
<DIV id="d2" style="BACKGROUND-COLOR:red"></DIV>
</form>
</body>
</HTML>
When I call the wait page from my "starttheprocess.aspx" page with this

Response.Redirect("Wait.aspx?redirectPage=" + "ProcessTheData.aspx&Data=" + TextBox1.Text + "&secondsToWait=30")

I get

Page not found.

Thats from the javascript.

Any ideas? Please.

Thanks

Nov 18 '05 #3
Hi,
Yes I am just pasting the JScript within the HEAD TAG

"Patrick.O.Ige" wrote:
Are just pasting the Jscript before the HEAD element in ASP.NET(HTML)?
Or you are registering it?
"Chris" wrote:
Hi,
I was following the article
http://msdn.microsoft.com/msdnmag/is...s/default.aspx I
got everything working until I go the the Progress bar section. Here is where
I am stuck.

This is the vb.net code for the wait.aspx page

Public redirectPage As String = ""
Public secondsToWait As String = "0"
Public minutesToWait As String = "0"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

'If Request.QueryString("redirectPage") <> "" Then
' redirectPage = Request.QueryString("redirectPage")
'End If

Dim secondsToWait As String = Request.QueryString("secondsToWait")
Dim minutesToWait As String = Request.QueryString("minutesToWait")

If (minutesToWait <> String.Empty) Then
secondsToWait = "0"
Else
Dim seconds As Integer = Int32.Parse(secondsToWait)
Dim minutes As Integer = seconds / 60

If (seconds Mod 60 = 0) And (minutes > 1) Then
minutesToWait = minutes.ToString()
secondsToWait = "0"
End If

End If
End Sub

This is the html
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="wait.aspx.vb"
Inherits="Webtest.wait"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>wait</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">

<SCRIPT language="javascript">
var i = 0;
function redirectTo(targetPage, querystring, secondsForWaiting,
minutesForWaiting)
{
if (0 < targetPage.length)
{
b1.style.cursor="wait";
location.replace(targetPage + querystring);

if (secondsForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ secondsForWaiting + " seconds...";
timedIterations(secondsForWaiting);
}
else
{
if (minutesForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ minutesForWaiting + " minutes...";
timedIterations(minutesForWaiting * 60);
}
}
}
else
{
ProcessingLabel.innerText = "Page not found."
}
}

function timedIterations(secondsForIterating)
{
incrementalWidth = 800 / secondsForIterating;
if (i <= secondsForIterating + 10)
{
d1.innerText="Elapsed time: " + i + " seconds.";
d2.style.width=i*incrementalWidth;
setTimeout(
"timedIterations(" + secondsForIterating + ");",
1000);
i++;
}
else
{
b1.style.cursor="";
d1.style.visibility = "hidden";
d2.style.visibility = "hidden";
ProcessingLabel.innerText =
"The server is taking longer than "
+ "anticipated to process your request. "
+ "Thank you for your patience. "
+ "You can wait a few minutes longer for "
+ "the process to complete, or you can press "
+ "the back button and try again later...";
}
}
</SCRIPT>


</HEAD>
<body id=b1
onload="redirectTo('<%Response.Write(redirectPage) %>','<%Response.Write(Request.Url.Query)%>','<%Res ponse.Write(secondsToWait)%>','<%Response.Write(mi nutesToWait)%>')">
<form id="Form1" method="post" runat="server">
<asp:Label id="ProcessingLabel" runat="server"
CssClass="DarkMediumSizeText">Processing...</asp:Label>
<p></p>
<DIV id="d1" class="DarkSmallSizeText"></DIV>
<DIV id="d2" style="BACKGROUND-COLOR:red"></DIV>
</form>
</body>
</HTML>
When I call the wait page from my "starttheprocess.aspx" page with this

Response.Redirect("Wait.aspx?redirectPage=" + "ProcessTheData.aspx&Data=" +
TextBox1.Text + "&secondsToWait=30")

I get

Page not found.

Thats from the javascript.

Any ideas? Please.

Thanks

Nov 18 '05 #4
Hi,
This is the address for the page not found

http://localhost/webtest/Wait.aspx?r...condsToWait=30

"Jeff Dillon" wrote:
What is the address of the "page not found". What appears in the address
bar?

Seems like you could reproduce the problem in 2-3 lines of code around the
Response.Redirect, by hard-coding values, to start.

Jeff
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
Hi,
I was following the article
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

I
got everything working until I go the the Progress bar section. Here is

where
I am stuck.

This is the vb.net code for the wait.aspx page

Public redirectPage As String = ""
Public secondsToWait As String = "0"
Public minutesToWait As String = "0"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

'If Request.QueryString("redirectPage") <> "" Then
' redirectPage = Request.QueryString("redirectPage")
'End If

Dim secondsToWait As String = Request.QueryString("secondsToWait")
Dim minutesToWait As String = Request.QueryString("minutesToWait")

If (minutesToWait <> String.Empty) Then
secondsToWait = "0"
Else
Dim seconds As Integer = Int32.Parse(secondsToWait)
Dim minutes As Integer = seconds / 60

If (seconds Mod 60 = 0) And (minutes > 1) Then
minutesToWait = minutes.ToString()
secondsToWait = "0"
End If

End If
End Sub

This is the html
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="wait.aspx.vb"
Inherits="Webtest.wait"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>wait</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">

<SCRIPT language="javascript">
var i = 0;
function redirectTo(targetPage, querystring, secondsForWaiting,
minutesForWaiting)
{
if (0 < targetPage.length)
{
b1.style.cursor="wait";
location.replace(targetPage + querystring);

if (secondsForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ secondsForWaiting + " seconds...";
timedIterations(secondsForWaiting);
}
else
{
if (minutesForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ minutesForWaiting + " minutes...";
timedIterations(minutesForWaiting * 60);
}
}
}
else
{
ProcessingLabel.innerText = "Page not found."
}
}

function timedIterations(secondsForIterating)
{
incrementalWidth = 800 / secondsForIterating;
if (i <= secondsForIterating + 10)
{
d1.innerText="Elapsed time: " + i + " seconds.";
d2.style.width=i*incrementalWidth;
setTimeout(
"timedIterations(" + secondsForIterating + ");",
1000);
i++;
}
else
{
b1.style.cursor="";
d1.style.visibility = "hidden";
d2.style.visibility = "hidden";
ProcessingLabel.innerText =
"The server is taking longer than "
+ "anticipated to process your request. "
+ "Thank you for your patience. "
+ "You can wait a few minutes longer for "
+ "the process to complete, or you can press "
+ "the back button and try again later...";
}
}
</SCRIPT>


</HEAD>
<body id=b1

onload="redirectTo('<%Response.Write(redirectPage) %>','<%Response.Write(Requ
est.Url.Query)%>','<%Response.Write(secondsToWait) %>','<%Response.Write(minu
tesToWait)%>')">
<form id="Form1" method="post" runat="server">
<asp:Label id="ProcessingLabel" runat="server"
CssClass="DarkMediumSizeText">Processing...</asp:Label>
<p></p>
<DIV id="d1" class="DarkSmallSizeText"></DIV>
<DIV id="d2" style="BACKGROUND-COLOR:red"></DIV>
</form>
</body>
</HTML>
When I call the wait page from my "starttheprocess.aspx" page with this

Response.Redirect("Wait.aspx?redirectPage=" + "ProcessTheData.aspx&Data="

+
TextBox1.Text + "&secondsToWait=30")

I get

Page not found.

Thats from the javascript.

Any ideas? Please.

Thanks


Nov 18 '05 #5
So what happens when you manually browse to this page? Does it exist??

And what exactly are you trying to accomplish?

Jeff
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:38**********************************@microsof t.com...
Hi,
This is the address for the page not found

http://localhost/webtest/Wait.aspx?r...condsToWait=30
"Jeff Dillon" wrote:
What is the address of the "page not found". What appears in the address
bar?

Seems like you could reproduce the problem in 2-3 lines of code around the Response.Redirect, by hard-coding values, to start.

Jeff
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
Hi,
I was following the article
http://msdn.microsoft.com/msdnmag/is...s/default.aspx
I
got everything working until I go the the Progress bar section. Here
is where
I am stuck.

This is the vb.net code for the wait.aspx page

Public redirectPage As String = ""
Public secondsToWait As String = "0"
Public minutesToWait As String = "0"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

'If Request.QueryString("redirectPage") <> "" Then
' redirectPage = Request.QueryString("redirectPage")
'End If

Dim secondsToWait As String =
Request.QueryString("secondsToWait") Dim minutesToWait As String = Request.QueryString("minutesToWait")
If (minutesToWait <> String.Empty) Then
secondsToWait = "0"
Else
Dim seconds As Integer = Int32.Parse(secondsToWait)
Dim minutes As Integer = seconds / 60

If (seconds Mod 60 = 0) And (minutes > 1) Then
minutesToWait = minutes.ToString()
secondsToWait = "0"
End If

End If
End Sub

This is the html
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="wait.aspx.vb" Inherits="Webtest.wait"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>wait</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">

<SCRIPT language="javascript">
var i = 0;
function redirectTo(targetPage, querystring, secondsForWaiting,
minutesForWaiting)
{
if (0 < targetPage.length)
{
b1.style.cursor="wait";
location.replace(targetPage + querystring);

if (secondsForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ secondsForWaiting + " seconds...";
timedIterations(secondsForWaiting);
}
else
{
if (minutesForWaiting.valueOf() > 0)
{
ProcessingLabel.innerText =
"This process can take up to "
+ minutesForWaiting + " minutes...";
timedIterations(minutesForWaiting * 60);
}
}
}
else
{
ProcessingLabel.innerText = "Page not found."
}
}

function timedIterations(secondsForIterating)
{
incrementalWidth = 800 / secondsForIterating;
if (i <= secondsForIterating + 10)
{
d1.innerText="Elapsed time: " + i + " seconds.";
d2.style.width=i*incrementalWidth;
setTimeout(
"timedIterations(" + secondsForIterating + ");",
1000);
i++;
}
else
{
b1.style.cursor="";
d1.style.visibility = "hidden";
d2.style.visibility = "hidden";
ProcessingLabel.innerText =
"The server is taking longer than "
+ "anticipated to process your request. "
+ "Thank you for your patience. "
+ "You can wait a few minutes longer for "
+ "the process to complete, or you can press "
+ "the back button and try again later...";
}
}
</SCRIPT>


</HEAD>
<body id=b1

onload="redirectTo('<%Response.Write(redirectPage) %>','<%Response.Write(Requ est.Url.Query)%>','<%Response.Write(secondsToWait) %>','<%Response.Write(minu tesToWait)%>')">
<form id="Form1" method="post" runat="server">
<asp:Label id="ProcessingLabel" runat="server"
CssClass="DarkMediumSizeText">Processing...</asp:Label>
<p></p>
<DIV id="d1" class="DarkSmallSizeText"></DIV>
<DIV id="d2" style="BACKGROUND-COLOR:red"></DIV>
</form>
</body>
</HTML>
When I call the wait page from my "starttheprocess.aspx" page with this
Response.Redirect("Wait.aspx?redirectPage=" +
"ProcessTheData.aspx&Data=" +
TextBox1.Text + "&secondsToWait=30")

I get

Page not found.

Thats from the javascript.

Any ideas? Please.

Thanks


Nov 18 '05 #6

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

Similar topics

1
by: Michael Lubavin | last post by:
Hi, I am having a perl cgi script that needs to be able to create and write a new file. Is there a way I can use chmod within the script to give temporary world access to my directory, and then...
10
by: techy techno | last post by:
Hiii Hello.. I just wanted to know if anyone can tell me how can I give my website visitors the feature of "FRIENDLY PRINTING" through IE. I would definitely like to give a feature like...
1
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for...
18
by: free2cric | last post by:
Hi, I attanded an interview on C++ Question asked were and my answers to them.. 1. In a CPP program what does memory leak occure? -- i said.. In a constructor , the pointer variables were...
1
by: junglenut | last post by:
please give me a reverse word java program in a form of jcreator javax.swing.*; source code.. because i really have a hard time figuring it out on how to make it.. please give me a reverse word...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
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...
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...

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.