How to receive a value return from other website in C#?

  • Thread starter Thread starter Wing
  • Start date Start date
W

Wing

Hi all,

I am writing a webpage to test the credit card transaction process.
After transction, there are some vaules such as transaction refernece
will be return back to my webpage.

How can i receive these values in C#?

What command I need to use in C#?

Is there is tutorial website I can read??

thanks for your time.

Wing
 
Wing,

This is something that is dependent on the website/web service you are
calling. AFAIK, there isn't a standard API for this.

You will need to check the site that you are trying to access, see if
they have any documentation on what you are trying to do.

Hope this helps.
 
thanks for your comment

the following code is provided by the credit card transaction website

----------------------------------------------------------------------------------

<%
result = Request("ewayTrxnStatus")
trxnReference = Request("ewayTrxnReference")
transaction_number = Request("ewayTrxnNumber")
if transaction_number = "" then
transaction_number = "NOT DEFINED"
end if
option1 = Request("ewayoption1")
option2 = Request("ewayoption2")
option3 = Request("ewayoption3")

%>
<table border="1" width="70%" cellspacing="0" cellpadding="5"
bordercolor="#000080">
<tr>
<td width="22%" valign="top"><p class="subtitle">
<a href="http://www.eway.com.au" target="_blank">
<img alt="eWAY - a total e commerce solution" border="0"
height="91" src="http://www.eway.com.au/images/logos/eway.gif"
width="200">
</a></p>
</td>
<td width="78%" valign="top" bgcolor="#ffffff">
<p>Transaction status is <b><%=result%></b> for transaction
<b><%=CStr(trxnReference) %></b>, your reference is
<b><%=CStr(transaction_number) %></b>
The following additional information was passed <br>
option1 <b><%= CStr(option1) %></b><br>
option2 <b><%= CStr(option2) %></b><br>
option3 <b><%= CStr(option3) %></b>
</p><a href="http://www.eway.com.au">Return to eWAY web site</a>
</td>
</tr>
</table>
------------------------------------------------------------------------------------------------------------

the value of ewayTrxnStatus, ewayTrxnReference, ewayTrxnNumber,
ewayoption1, ewayoption2 and ewayoption3 will be return to my website
after transaction.

What's the corresponding Method i can call in C# to perform the same
job??

thanks you
 
Back
Top