How to post data

P

Peter Afonin

Hello,

I need to post data to the payment gateway. I know how to post data and read
results, I'm doing it all the time as described, for instance, in this
article: http://authors.aspalliance.com/stevesmith/articles/netscrape2.asp

But I don't need to read results on my page, I need to get to another
server. In other words, I need to do exactly like I would do using GET
method - just redirect to another URL and pass parameters. The only
difference that this payment gateway is using POST rather than GET, so I
cannot pass any parameters, I need to post them.

It's just like assigning URL to the form action, but I cannot do it in this
case.

I would appreciate your help.

Thank you,
 
G

Guest

Hi Peter,

Although there isn’t PostBackURL property in ASP.NET 1.1, you still can post
your form to other site.

First of all, you can have javascript function like:

function postToUrl(){
Form1.action = "http://www.yahoo.com";
Form1.submit();
}

And in .NET code, you can set button client event:

BtnPost.Attributes.Add("OnClick", "postToUrl();");

HTH

Elton Wang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,631
Members
45,340
Latest member
Thalia56P0

Latest Threads

Top