Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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.

Report this thread to moderator Post Follow-up to this message
Old Post
Jack
12-25-04 08:55 AM


Re: To wait for few secs before redirect
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)

Report this thread to moderator Post Follow-up to this message
Old Post
Evertjan.
12-25-04 01:55 PM


Re: To wait for few secs before redirect
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)
>

Report this thread to moderator Post Follow-up to this message
Old Post
Jack
12-25-04 08:55 PM


Re: To wait for few secs before redirect
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:

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

Report this thread to moderator Post Follow-up to this message
Old Post
Jack
12-25-04 08:55 PM


Re: To wait for few secs before redirect
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)

Report this thread to moderator Post Follow-up to this message
Old Post
Evertjan.
12-25-04 08:55 PM


Re: To wait for few secs before redirect
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)
>

Report this thread to moderator Post Follow-up to this message
Old Post
Jack
12-25-04 08:55 PM


Re: To wait for few secs before redirect
"Jack" <Jack@discussions.microsoft.com> wrote in message
news:3E912992-AEA5-41A2-A824-913A439F3EBF@microsoft.com...
> 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



Report this thread to moderator Post Follow-up to this message
Old Post
Hal Rosser
12-26-04 08:55 AM


Re: To wait for few secs before redirect
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)

Report this thread to moderator Post Follow-up to this message
Old Post
Evertjan.
12-26-04 01:55 PM


Re: To wait for few secs before redirect
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



Report this thread to moderator Post Follow-up to this message
Old Post
Hal Rosser
12-27-04 08:55 AM


Re: To wait for few secs before redirect
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)

Report this thread to moderator Post Follow-up to this message
Old Post
Evertjan.
12-27-04 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:22 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.