Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Rendering one page temporarily while another posts back

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WhiskeyRomeo - 17 Dec 2007 19:22 GMT
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
bruce barker - 17 Dec 2007 20:20 GMT
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)

> I have seen this done on many sites but cannot imagine how this is done in
> .Net 1.1.
[quoted text clipped - 17 lines]
>
> wr
WhiskeyRomeo - 17 Dec 2007 22:48 GMT
2 is not an option in 1.1 is it?  And I have no idea how to do 1.

> the browser will not run an animated gif during a postback. you have two
> options
[quoted text clipped - 27 lines]
> >
> > wr
Mark Rae [MVP] - 17 Dec 2007 22:57 GMT
> 2 is not an option in 1.1 is it?

It is if you use Anthem:
http://anthemdotnet.com/
http://anthemdotnet.com/examples/ConcurrentCallBacks.aspx

Signature

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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.