469,356 Members | 2,012 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

To wait for few secs before redirect

Hi,
I have a asp result page which shows that a record has been successfully
updated. After this display I need to redirect this to a different page.
However, I would like to keep the display for few secs before the redirect. I
would appreciate the command to do this. Thanks for any help. Regards.
Jul 22 '05 #1
11 5807
=?Utf-8?B?SmFjaw==?= wrote on 25 dec 2004 in
microsoft.public.inetserver.asp.general:
I have a asp result page which shows that a record has been
successfully updated. After this display I need to redirect this to a
different page. However, I would like to keep the display for few secs
before the redirect. I would appreciate the command to do this. Thanks
for any help. Regards.


Redirecting is a clientside happening.

Redirecting by ASP response.redirect too!!!

The latter however is redirected from the html header,
so cannot be delayed or show any output before redirecting.

Try your hand at <meta> or clientside script redirecting,
both of which are off topic on this NG.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 22 '05 #2
Thanks for your feedback, Evertjan.
I am going to check out client side redirecting for an answer to my
questions.

"Evertjan." wrote:
=?Utf-8?B?SmFjaw==?= wrote on 25 dec 2004 in
microsoft.public.inetserver.asp.general:
I have a asp result page which shows that a record has been
successfully updated. After this display I need to redirect this to a
different page. However, I would like to keep the display for few secs
before the redirect. I would appreciate the command to do this. Thanks
for any help. Regards.


Redirecting is a clientside happening.

Redirecting by ASP response.redirect too!!!

The latter however is redirected from the html header,
so cannot be delayed or show any output before redirecting.

Try your hand at <meta> or clientside script redirecting,
both of which are off topic on this NG.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 22 '05 #3
Since I am exclusively working with asp pages, I was wondering if there is a
way to
report user that database has been updated before directing. Any idea on this?

"Jack" wrote:
Thanks for your feedback, Evertjan.
I am going to check out client side redirecting for an answer to my
questions.

"Evertjan." wrote:
=?Utf-8?B?SmFjaw==?= wrote on 25 dec 2004 in
microsoft.public.inetserver.asp.general:
I have a asp result page which shows that a record has been
successfully updated. After this display I need to redirect this to a
different page. However, I would like to keep the display for few secs
before the redirect. I would appreciate the command to do this. Thanks
for any help. Regards.


Redirecting is a clientside happening.

Redirecting by ASP response.redirect too!!!

The latter however is redirected from the html header,
so cannot be delayed or show any output before redirecting.

Try your hand at <meta> or clientside script redirecting,
both of which are off topic on this NG.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 22 '05 #4
=?Utf-8?B?SmFjaw==?= wrote on 25 dec 2004 in
microsoft.public.inetserver.asp.general:
Since I am exclusively working with asp pages, I was wondering if
there is a way to
report user that database has been updated before directing. Any idea
on this?


[please do not toppost on usenet]

As long as you mean ASP resirecting: No this cannot be done.

But this can:

<%
'' open database and execute select sql first

if mData("updated")= "yes" then response.redirect "page1.asp"

' else
response.redirect "page2.asp"

%>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 22 '05 #5
Thanks for the insight Evertjan. Regards

"Evertjan." wrote:
=?Utf-8?B?SmFjaw==?= wrote on 25 dec 2004 in
microsoft.public.inetserver.asp.general:
Since I am exclusively working with asp pages, I was wondering if
there is a way to
report user that database has been updated before directing. Any idea
on this?


[please do not toppost on usenet]

As long as you mean ASP resirecting: No this cannot be done.

But this can:

<%
'' open database and execute select sql first

if mData("updated")= "yes" then response.redirect "page1.asp"

' else
response.redirect "page2.asp"

%>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 22 '05 #6

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com...
Thanks for the insight Evertjan. Regards

"Evertjan." wrote:
=?Utf-8?B?SmFjaw==?= wrote on 25 dec 2004 in
microsoft.public.inetserver.asp.general:
Since I am exclusively working with asp pages, I was wondering if
there is a way to
report user that database has been updated before directing. Any idea
on this?


[please do not toppost on usenet]

As long as you mean ASP resirecting: No this cannot be done.

But this can:

<%
'' open database and execute select sql first

if mData("updated")= "yes" then response.redirect "page1.asp"

' else
response.redirect "page2.asp"

%>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


You can put a javascript (client-side) function on the asp page which
informs the user the dtdbase has been updated.
look at the javascript settimeout function.
You can display your asp result page a few seconds, then javascript can take
the user to another page.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.818 / Virus Database: 556 - Release Date: 12/17/2004
Jul 22 '05 #7
Hal Rosser wrote on 26 dec 2004:
I wrote:
> But this can:
>
> <%
> '' open database and execute select sql first
>
> if mData("updated")= "yes" then response.redirect "page1.asp"
>
> ' else
> response.redirect "page2.asp"
>
> %>


You can put a javascript (client-side) function on the asp page which
informs the user the dtdbase has been updated.


On my page1.asp, you can, or you could make page1.asp and page2.asp
nearly the same, but for the database result message.

But that has nothing to do with ASP, so the term "asp-page" is
misleading, as it could also be page1.html and page2.html

In fact "page" is a clientside rendering, so an "asp page" is a
contradiction. It is a "file"(!) with an .asp exension and asp-code
content rendering a "html page"(!) on the client.
[Asp files can also render jpg, gif, video, xml, txt, etc]


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 22 '05 #8
SOOOO
What you're saying is that (semantics aside) that my suggestion is a good
one.
sheesh

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
Hal Rosser wrote on 26 dec 2004:
I wrote:
> But this can:
>
> <%
> '' open database and execute select sql first
>
> if mData("updated")= "yes" then response.redirect "page1.asp"
>
> ' else
> response.redirect "page2.asp"
>
> %>


You can put a javascript (client-side) function on the asp page which
informs the user the dtdbase has been updated.


On my page1.asp, you can, or you could make page1.asp and page2.asp
nearly the same, but for the database result message.

But that has nothing to do with ASP, so the term "asp-page" is
misleading, as it could also be page1.html and page2.html

In fact "page" is a clientside rendering, so an "asp page" is a
contradiction. It is a "file"(!) with an .asp exension and asp-code
content rendering a "html page"(!) on the client.
[Asp files can also render jpg, gif, video, xml, txt, etc]


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.818 / Virus Database: 556 - Release Date: 12/17/2004
Jul 22 '05 #9
Hal Rosser wrote on 27 dec 2004 in
microsoft.public.inetserver.asp.general:
> You can put a javascript (client-side) function on the asp page
> which informs the user the dtdbase has been updated.
On my page1.asp, you can, or you could make page1.asp and page2.asp
nearly the same, but for the database result message.

But that has nothing to do with ASP, so the term "asp-page" is
misleading, as it could also be page1.html and page2.html

In fact "page" is a clientside rendering, so an "asp page" is a
contradiction. It is a "file"(!) with an .asp exension and asp-code
content rendering a "html page"(!) on the client.
[Asp files can also render jpg, gif, video, xml, txt, etc]

SOOOO

What you're saying is that (semantics aside) that my suggestion is a
good one.
Semantics = facts of cyberlife or common decency ?

No, because you fail netiquette by repeated topposting.

No, because you fail netiquette by not heeding the fact that you are
asking for a clientside solution in a serverside code toppiced NG.

No, because "asp-pages" in that sense do not exist.

Yes, semanics and netiquete aside, you could do it that way.
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.818 / Virus Database: 556 - Release Date: 12/17/2004


You seem to fail to understand that this is usenet:
Virusses in a non binary NG are nearly impossible.
So don't show this crap.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 22 '05 #10
Do you think it could be done by a combination of ASP pages using the
Server.Execute or Server.Transfer methods along with the 'Please Wait'
technique listed on aspfaq: http://www.aspfaq.com/show.asp?id=2498 ?
Perhaps, in the asp page, have a server.execute where it shows a message
that the record(s) have been updated, then use the counter from the aspfaq
above, then when it goes back to the original page, it could then continue
with the rest of the code on that page?

I'm still new at this stuff but that was the only idea I could think of.

Jim

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
=?Utf-8?B?SmFjaw==?= wrote on 25 dec 2004 in
microsoft.public.inetserver.asp.general:
I have a asp result page which shows that a record has been
successfully updated. After this display I need to redirect this to a
different page. However, I would like to keep the display for few secs
before the redirect. I would appreciate the command to do this. Thanks
for any help. Regards.


Redirecting is a clientside happening.

Redirecting by ASP response.redirect too!!!

The latter however is redirected from the html header,
so cannot be delayed or show any output before redirecting.

Try your hand at <meta> or clientside script redirecting,
both of which are off topic on this NG.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 22 '05 #11
Man, Evertjan., you've been crabby lately. I thought you'd be cheerier
after the being overcome by yule-tide spirit. :] Everything OK? If you
want to talk, just give me a call. I'm here for you man.

Ray at work

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
You seem to fail to understand that this is usenet:
Virusses in a non binary NG are nearly impossible.
So don't show this crap.


Jul 22 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Yannick Turgeon | last post: by
4 posts views Thread by dave | last post: by
4 posts views Thread by Anonymous | last post: by
15 posts views Thread by Snuyt | last post: by
9 posts views Thread by jodleren | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.