Code Comments
Programming Forum and web based access to our favorite programming groups.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 Follow-up to this messageexamnotes 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 Follow-up to this messageThanks 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 Follow-up to this messageSince 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: >
Post Follow-up to this messageexamnotes 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 Follow-up to this messageThanks 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 Follow-up to this message"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
Post Follow-up to this messageHal 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 Follow-up to this messageSOOOO 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 Follow-up to this messageHal 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 Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.