Question
Time: 23:30 - May 12, 2008 Asked by: unwisheddreamss Status: Unanswered Points: 125
I need some help converting a piece of ASP code to ASP.NET
<%@ Language=VBScript %> <% 'requires Microsoft XML Parser http://msdn.microsoft.com/xml Dim objHttp 'object used for posting form data to nochex Dim nochexformdata 'variable used to store form data sent from NOCHEX Dim NochexResponse 'stores the response from the NOCHEX server nochexformdata = Request.Form 'copy the form data from NOCHEX into the variable set objHttp = Server.CreateObject("MSXML2.XMLHTTP") 'create an instance of the XML object library objHttp.open "POST", "https://www.nochex.com/nochex.dll/apc/ap..., false 'set the page to post the form data to the NOCHEX server objHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" objHttp.Send nochexformdata 'send the form data received from NOCHEX to the NOCHEX server ' Check notification validation if (objHttp.status = 200 ) then if (objHttp.responseText = "AUTHORISED") then NochexResponse = "AUTHORISED" 'check the transaction_id to make sure it is not a duplicate 'process transaction elseif (objHttp.responseText = "DECLINED") then NochexResponse = "DECLINED" 'log and investigate incorrect data end if else NochexResponse = "NO RESPONSE " end if %>
Ask a New Question
Become a Quomon Expert
Current Categories
Other Questions Needing Answers
Question Unanswered
Answer Summary Currently Unavailable.
Respond to this question:
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Enter your email address below and we will resend your login information to you.
Login Information Sent
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
All Questions
Language Options
English:
Español:
Quomon Blog
Sponsors
Questions and Answers Software Real Estate Postcards Marketing Fulfillment