us1975mc
asked on
Processing a payment
Experts,
Have a webpage that makes a web service call and is waiting for a response to the ws call. When I get the response it populates 3 textboxes with different information, a Response Code, a Transaction ID and a Confirmation #.
My problem is that the web service can take anywhere from an instant to several seconds. I determine where I go from the information that I receive in the Response Code. (if it is good I go to one page, if it is bad I tell them to recheck their data and resubmit.)
How do I place some bit of information that the process may take a few seconds and please do not close the application window during this time. Then when the Response Code textbox is filled with info to take the message down and process the information.
I tried the TextChanged event on the textbox and that does not seem to work.
I am using Visual Studio 2010 with Visual Basic.
Any Ideas?
Have a webpage that makes a web service call and is waiting for a response to the ws call. When I get the response it populates 3 textboxes with different information, a Response Code, a Transaction ID and a Confirmation #.
My problem is that the web service can take anywhere from an instant to several seconds. I determine where I go from the information that I receive in the Response Code. (if it is good I go to one page, if it is bad I tell them to recheck their data and resubmit.)
How do I place some bit of information that the process may take a few seconds and please do not close the application window during this time. Then when the Response Code textbox is filled with info to take the message down and process the information.
I tried the TextChanged event on the textbox and that does not seem to work.
I am using Visual Studio 2010 with Visual Basic.
Any Ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
kaufmed, I see what you are saying about the client-side notification, but bas really wanting to stay away from JS but may have to go there...
CodeCruiser, Yes I am using AJAX. The link that you show, I tried the Live Demo and tried to download the code but it is not there. Is there a progress control in AJAX? If so I haven't seen it.
CodeCruiser, Yes I am using AJAX. The link that you show, I tried the Live Demo and tried to download the code but it is not there. Is there a progress control in AJAX? If so I haven't seen it.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
...really wanting to stay away from JS...Heheh... but your already there!!!
...Yes I am using AJAX.
ASKER
Kaufmed, as soon as I sent that one off I thought to myself, O s###t, that was dumb!
No worries. I understand about not wanting to use JS. My job demands that if you provide a JS-enabled site, you must provide a non-JS enabled version. I find it easier to just do the non-JS from the get go = )
ASKER
kaufmed, Cool.... ;0)
ASKER
OK kaufmed, where do I go for doing JS in the code?
ASKER
Thanks for the thoughts. Found solution through both and JS was in there.
http://mattberseth.com/blog/2008/05/aspnet_ajax_progress_bar_contr.html