Discussions
Categories
Groups
Advertisement
Child Item
Home
Topics
Technology & Internet
Software & Web Development
Development
Loading Screen for ASPX web site?
Whackhead
Hi guys
I am creating a website where users will be buying a certain item. The user can use paypal to pay for their purchase.
After the purchase is complete paypal will redirect back to my page where I will then wait for paypal to send me notification that of the payments status. While I wait for this notification I want the user to be shown some sort of waiting screen, preferably animated.
Does anyone have a pointer to a tutorial of some kind? Would I need to do this in Flash? Was thinking maybe silverlight as I have done some work with it.
Any pointers would be appreciated.
Regards
Find more posts tagged with
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
Advertisement
Advertisement
Comments
Giblet
Do you do anything in code that waits for the notification? If you run that code in an update panel, you could use an updateprogress control.
Whackhead
Not really, I am waiting on PayPal to send me some sort of order status, whether it be Failed or Successful etc...
I have found a silverlight tutorial showing how to edit the SL loading screen, will see if I can modify it.
stevenmu
A silverlight app seems way over the top for just a waiting screen tbh. Even though it'll be a tiny one, there'll still be the overhead of downloading the app and launching the plugin. Not to mention installing silverlight for people who don't have it and browser compatability. Just use an AJAX updatepanel and some kind of progress bar or something, or even just a spinning icon or something.
Draupnir
How does PayPal send you back the response? Do you make a synchronous or asynchronous call to their site?
Do you call PayPal from the code behind?
For simplicities sake, based on it being a synchronous call, what I would do is have a hidden div become visible on the button click which calls PayPal (do this in JavaScript). Hidden div can contain some spinning loading graphic (can be created using online generators).
Once you get your response from PayPal you can hide the div again in the code behind, if you have made the div a server side control as well as a client side one. I presume you know how to do this?
I wouldn't be going the SilverLight route and UpdatePanels or anything else AJAX.NET are the spawn of the devil.
Ginger
If you did this using an sync thread its fairly easy.
All you need to do is set your thread to do the jobs and before you start the thread show the screen, once the thread is finished, remove the screen
Can be done pretty trivially
Otherwise what you can do is do it async with a web service and just use an update panel to track the changes..