Register  |  Login

Question Details    

   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


   

Answer Discussion
Answer Discussion
Answer Summaries
Answer Summary
 

Question Unanswered

Nobody has responded to this question yet.

You can submit your answer below.




 

Answer Summary Currently Unavailable.

Answer Summaries cannot be submitted until the Answer Discussion is complete.

If you have an Answer for this question, submit it in the Answer Discussion area.




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:


Forgotten Password

 

   

"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it


All Questions


Language Options

English:

www.quomon.com

Español:

www.quomon.es

Quomon Blog

blog.quomon.com

Sponsors

Questions and Answers Software
Real Estate Postcards
Marketing Fulfillment