Last post Aug 16, 2005 08:37 AM by martinbl
Aug 08, 2005 10:06 AM|ASP1979|LINK
I have a checkout form in which there is some server controls.
When a customer filled out the checkout form and press submit button all the submitted values are inserted in database and also I want to send the Order Number which is OrderID (Auto Generated Primary Key of my
table) and an Amount to another server (to process the payment transaction) which address is some thing like:
All the things are fine up to insertion in database but the problem is that how can I send the Order Number and Amount from same web form to aforesaid address using post method of FormHtmlControl because my e-merchant
service provider will get these information by using Request.Form(“OrderNo”) Method.
If anyone wants more info. about, just let me know
Thank you, urgent replay expected
Aug 08, 2005 11:05 AM|martinbl|LINK
you could try to post the data manually using the WebClient class.
Here is a function I use to post data:
// Create a new WebClient instance.
WebClient myWebClient = new WebClient();
// Set the content type
// Apply ASCII Encoding to obtain the string as a byte array.
byte byteArray = Encoding.UTF8.GetBytes(data);
// Upload the input string using the HTTP 1.0 POST method.
byte responseArray = myWebClient.UploadData(uri, "POST", byteArray);
So you could post your data like:
string data = "OrderNo=" + your_Order_No + "&othervar=othervalue&othervar2=othervalue2";
analysing the returned array of byte should give you the output generated by the merchand.
Hope this help
Aug 09, 2005 05:19 AM|ASP1979|LINK
HttpPost = ResponseArray
Aug 09, 2005 05:27 AM|ASP1979|LINK
one thing i forget to mention, if you go to
and enter the information and press the submitt button so it eccept
you can also check the "action" of that from by viewing the source of that form as this is html page
Aug 15, 2005 11:56 AM|martinbl|LINK
Aug 16, 2005 03:29 AM|ASP1979|LINK
Aug 16, 2005 08:37 AM|martinbl|LINK