To wait for few secs before redirect
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > To wait for few secs before redirect




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    To wait for few secs before redirect  
Jack


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-25-04 09:51 AM

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.





[ Post a follow-up to this message ]



    Re: To wait for few secs before redirect  
Evertjan.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-25-04 09:51 AM

examnotes 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)





[ Post a follow-up to this message ]



    Re: To wait for few secs before redirect  
Jack


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-26-04 12:22 AM

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

"Evertjan." wrote:

> examnotes wrote on 25 dec 2004 in
> microsoft.public.inetserver.asp.general: 
>
> 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)
>





[ Post a follow-up to this message ]



    Re: To wait for few secs before redirect  
Jack


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-26-04 12:22 AM

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 thi
s?

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





[ Post a follow-up to this message ]



    Re: To wait for few secs before redirect  
Evertjan.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-26-04 12:22 AM

examnotes 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)





[ Post a follow-up to this message ]



    Re: To wait for few secs before redirect  
Jack


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-26-04 12:22 AM

Thanks for the insight Evertjan. Regards

"Evertjan." wrote:

> examnotes wrote on 25 dec 2004 in
> microsoft.public.inetserver.asp.general:
> 
>
> [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)
>





[ Post a follow-up to this message ]



    Re: To wait for few secs before redirect  
Hal Rosser


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-26-04 07:47 AM


"Jack" <Jack@discussions.microsoft.com> wrote in message
news:3E912992-AEA5-41A2-A824-913A439F3EBF@microsoft.com...[vbcol=seagreen]
> Thanks for the insight Evertjan. Regards
>
> "Evertjan." wrote:
> 

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







[ Post a follow-up to this message ]



    Re: To wait for few secs before redirect  
Evertjan.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-26-04 12:46 PM

Hal Rosser wrote on 26 dec 2004: 
>
> 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)





[ Post a follow-up to this message ]



    Re: To wait for few secs before redirect  
Hal Rosser


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-27-04 07:47 AM

SOOOO
What you're saying is that (semantics aside) that my suggestion is a good
one.
sheesh

"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
news:Xns95CB67488DB29eejj99@194.109.133.29...
> Hal Rosser wrote on 26 dec 2004: 
>
> 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







[ Post a follow-up to this message ]



    Re: To wait for few secs before redirect  
Evertjan.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-27-04 12:46 PM

Hal Rosser wrote on 27 dec 2004 in
microsoft.public.inetserver.asp.general:
 
> 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)





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:27 PM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register