473,659 Members | 3,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Nov 17 '05 #1
3 1188
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Wing" <li******@gmail .com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
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

Nov 17 '05 #2
You're looking for System.Net.WebC lient. See:

http://msdn.microsoft.com/library/de...classtopic.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

"Wing" <li******@gmail .com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
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

Nov 17 '05 #3
thanks for your comment

the following code is provided by the credit card transaction website

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

<%
result = Request("ewayTr xnStatus")
trxnReference = Request("ewayTr xnReference")
transaction_num ber = Request("ewayTr xnNumber")
if transaction_num ber = "" then
transaction_num ber = "NOT DEFINED"
end if
option1 = Request("ewayop tion1")
option2 = Request("ewayop tion2")
option3 = Request("ewayop tion3")

%>
<table border="1" width="70%" cellspacing="0" cellpadding="5"
bordercolor="#0 00080">
<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="#fffff f">
<p>Transactio n status is <b><%=result% ></b> for transaction
<b><%=CStr(trxn Reference) %></b>, your reference is
<b><%=CStr(tran saction_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, ewayTrxnReferen ce, 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

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
3826
by: Sven Groot | last post by:
I have a Windows Service application that acts as if it's an SMTP server. Outlook connects to this service, which is always running on the localhost. This works fine most of the time. However, sometimes it will no longer receive anything from Outlook. Socket.Receive would block indefinitely (actually, Socket.Poll times out, because that's what I'm using). Outlook sends it, because when I'm stepping through the code with the debugger,...
4
2496
by: QQ | last post by:
Hello I am a newbie on network programming. I am trying to receive a packet if((numbytes = recvfrom(udp_fd1, buf, MAXLEN-1, 0,(struct sockaddr*)&register_addr, &addr_len))==-1){ fprintf(stderr, "error in recvfrom.\n"); exit(1); } The packet I am receiving has the following possible structure.
6
6498
by: PHLICS_Admin | last post by:
Hi All, There are two network cards in one computer (named A) , and there is one network card in another computer(named B). On computer A: one network card is used to connect to internet, and the other network card is used in intranet whose ipaddress is 192.168.0.1 On computer B: the network card's ipaddress is 192.168.0.2. These two computer can connect to each other.
3
2177
by: TacoGod | last post by:
I am trying to retrieve a file list from a ftp. I got this code from the microsoft website: Do While (True) m_aBuffer.Clear(m_aBuffer, 0, m_aBuffer.Length) bytes = cSocket.Receive(m_aBuffer, m_aBuffer.Length, SocketFlags.None) m_sMes += ASCII.GetString(m_aBuffer, 0, bytes) Console.WriteLine(m_sMes) If (bytes < m_aBuffer.Length) Then
6
17178
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically, process and output to the screen in my application when a message arrived. But the problem is how do I read the SMS message immediately when it arrived without my handphone BeEPINg for new message ? I read up the AT commands, but when getting down...
10
2507
by: Brad Baker | last post by:
I have an asp.net/csharp application that requires a particular variable to work properly. This variable is usually passed via a query string in the URL when the application is first run but under certain circumstances the query string may not contain the variable. So I need some way of establishing a default value if one isn't set. Is there some way I can set a query string on page_load OR is there some way I can use a global variable...
16
7539
by: s0suk3 | last post by:
I wanted to ask for standard ways to receive data from a socket stream (with socket.socket.recv()). It's simple when you know the amount of data that you're going to receive, or when you'll receive data until the remote peer closes the connection. But I'm not sure which is the best way to receive a message with undetermined length from a stream in a connection that you expect to remain open. Until now, I've been doing this little trick: ...
0
1567
by: =?Utf-8?B?UmFqbmk=?= | last post by:
Dear William Stacey, I have written a server code using the Windows Socket API's. Wherein I have created the socket and bound it to a particular IP address and port number. Later I have made the socket in non-blocking mode by using the proper socket option ( i.e. SO_RCVTIMEO). After which with the use of recv() I am trying to get into the receive mode. Here as the receive time out is being used the socket should come out of the block...
2
6534
by: OBones | last post by:
Hi all, I'm currently trying to receive replies to a UDP broadcast that I sent and I can't get it to work. I know the datagrams are sent as I see them with WireShark, but my C# code does not see them. Here is how I intended things to work: Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); try
0
8337
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8748
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7359
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2754
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.