Validation and posting to another site

  • Thread starter Thread starter Scott Newberry
  • Start date Start date
S

Scott Newberry

I'm having trouble figuring out the best way to post to another site. I
have an aspx that collects information from the user, including credit card
info, etc. I need to perform validation on what I'm collecting, so I'd like
to take advantage of using server-side controls, but validation is performed
and a record or two are created in table, I need to post SOME of the data
from the aspx to another site (Verisign) for credit card processing. Then I
need to receive some information posted from Verisign to another page on my
site (which displays an order confirmation page). I was able to do this
just fine in classic ASP, but I'm at a loss with ASP.NET. Using C#. Any
takers?

Thanks in advance!

Scott
 
Hi Scott,

Based on my research and experience, we can make use of the HttpWebRequest
class in .NET to implement your task. In addition, to send data to the
Internet resource, use the GetRequestStream method, which returns a Stream
instance to use to send data.

Please check out the URL below for the detailed information and code
snippet.

HttpWebRequest Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemnethttpwebrequestclasstopic.asp

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top