HighTechTalks DotNet Forums  

Rendering one page temporarily while another posts back

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Rendering one page temporarily while another posts back in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
WhiskeyRomeo
 
Posts: n/a

Default Rendering one page temporarily while another posts back - 12-17-2007 , 02:22 PM






I have seen this done on many sites but cannot imagine how this is done in
..Net 1.1.

We want to render another page displaying an animated gif while a credit
card order is processed. So the scenario would be a Check Out page where a
customer presses a submit order button. Next the page with the animated gif
would display while the credit card is being processed and the order is being
saved. If all goes well, the customer is redirected to a Receipt page. If
not, the intermediate page displaying the animated gif goes away leaving the
customer on the Check Out page with messages indicating the reason for
failure (the number one reason is invalid credit card credentials).

Presently, the customer is simply taken to a receipt page. But my customers
want the above scenario.

It seems to me the intermediate page must display before the Check Out page
posts back; and, the Check Out page has to close the intermediate page when
it has completed the post back and encountered no errors. Then the redirect
to the Receipt page must happen.

wr

Reply With Quote
  #2  
Old   
bruce barker
 
Posts: n/a

Default RE: Rendering one page temporarily while another posts back - 12-17-2007 , 03:20 PM






the browser will not run an animated gif during a postback. you have two
options

1). post back and start a thread to do the processing. then using a meta
tag, poll until complete.

2) do the postback with ajax.


-- bruce (sqlwork.com)


"WhiskeyRomeo" wrote:

Quote:
I have seen this done on many sites but cannot imagine how this is done in
.Net 1.1.

We want to render another page displaying an animated gif while a credit
card order is processed. So the scenario would be a Check Out page where a
customer presses a submit order button. Next the page with the animated gif
would display while the credit card is being processed and the order is being
saved. If all goes well, the customer is redirected to a Receipt page. If
not, the intermediate page displaying the animated gif goes away leaving the
customer on the Check Out page with messages indicating the reason for
failure (the number one reason is invalid credit card credentials).

Presently, the customer is simply taken to a receipt page. But my customers
want the above scenario.

It seems to me the intermediate page must display before the Check Out page
posts back; and, the Check Out page has to close the intermediate page when
it has completed the post back and encountered no errors. Then the redirect
to the Receipt page must happen.

wr

Reply With Quote
  #3  
Old   
WhiskeyRomeo
 
Posts: n/a

Default RE: Rendering one page temporarily while another posts back - 12-17-2007 , 05:48 PM



2 is not an option in 1.1 is it? And I have no idea how to do 1.

"bruce barker" wrote:

Quote:
the browser will not run an animated gif during a postback. you have two
options

1). post back and start a thread to do the processing. then using a meta
tag, poll until complete.

2) do the postback with ajax.


-- bruce (sqlwork.com)


"WhiskeyRomeo" wrote:

I have seen this done on many sites but cannot imagine how this is done in
.Net 1.1.

We want to render another page displaying an animated gif while a credit
card order is processed. So the scenario would be a Check Out page where a
customer presses a submit order button. Next the page with the animated gif
would display while the credit card is being processed and the order is being
saved. If all goes well, the customer is redirected to a Receipt page. If
not, the intermediate page displaying the animated gif goes away leaving the
customer on the Check Out page with messages indicating the reason for
failure (the number one reason is invalid credit card credentials).

Presently, the customer is simply taken to a receipt page. But my customers
want the above scenario.

It seems to me the intermediate page must display before the Check Out page
posts back; and, the Check Out page has to close the intermediate page when
it has completed the post back and encountered no errors. Then the redirect
to the Receipt page must happen.

wr

Reply With Quote
  #4  
Old   
Mark Rae [MVP]
 
Posts: n/a

Default Re: Rendering one page temporarily while another posts back - 12-17-2007 , 05:57 PM



"WhiskeyRomeo" <WhiskeyRomeo (AT) discussions (DOT) microsoft.com> wrote


Quote:
2 is not an option in 1.1 is it?
It is if you use Anthem:
http://anthemdotnet.com/
http://anthemdotnet.com/examples/Con...CallBacks.aspx


--
Mark Rae
ASP.NET MVP
http://www.markrae.net



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.