abiodunode
Posts: 10
|
| Posted: 07/18/2008, 3:04 PM |
|
This is the scenario....
I have a form which after the user submits a request, another page opens up to inform user about the progress of the transaction.
After the transaction has been successfully done..meaning that the database has been updated, this updated value needs to be displayed to the user with a msg like "Transaction successful".
I could do this presently by manually refreshing the page to pull out the new data from d database.
I have tried some ajax features and updatepanel but i seem to be having troubles.
I will appreciate any idea, plssssss. I use C# for my development, please.
|
 |
 |
tsgroman
Posts: 64
|
| Posted: 07/18/2008, 11:45 PM |
|
There is probably a better way to do it, but you could just set a page to redirect back to itself to check the status until a given condition is true and then redirect to a new page before the page redirect triggers.
Place this tag in the <head> section of your "Please wait while the transaction processes..." page:
<meta http-equiv="REFRESH" content="15;url=http://www.somedomain.com/page.aspx">
The number preceding the url= statement is the number of seconds before redirect to the url. You'd set URL to the URL of your "Please wait while the transaction processes..." page i.e. the page URL of the page containing the above meta tag.
In the page's codebehind file you'd write logic to check to see if the transaction had completed, if not - the page would refresh back to itself every 15 seconds until such time that the condition changed to one that'd trigger the response.redirect to your "The transaction has completed succesfully..." page.
Hope this helps...
|
 |
 |
|