CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 REFRESHING A PAGE DYNAMICALLY

Print topic Send  topic

Author Message
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.
View profile  Send private message
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...
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.