A stupid newbie question

J

Johnny Jörgensen

Hi all

I realize this will be a stupid question, but i simply can't find out how to
do it:

All my forms in my ASP.NET 2.0 app contains submit buttons where the user
can submit the forms.

But now I have a scenario where I have to submit the form automatically from
codebehind.

How the h*** do I do that. I read somewhere that the Form object should have
a Submit() method, but Visual Studio says no.

Thanks in advance for any help I can get,
Johnny J.
 
J

Johnny Jörgensen

Exactly

I need to get information to a third party credit card service that expects
the information to come from a form using http post.

I calculate the values in my code behind and fill in hidden fields in the
form and want to post the form programmatically. The user should not be
involved in this. All he will know is that he goes to the third party site,
do his stuff (credit card payment) and returns to our site.

/Johnny J.
 
A

Andrew Morton

Johnny said:
I need to get information to a third party credit card service that
expects the information to come from a form using http post.

If you look in the help for HttpWebRequest, you should be able to find what
you need.

Andrew
 
H

Hans Kesting

Johnny Jörgensen expressed precisely :
Hi all

I read somewhere that the Form object should have
a Submit() method, but Visual Studio says no.

Johnny J.

By the way: there *is* a "submit()" method (note the lower-case "s"),
but that is in client-side javascript.

Hans Kesting
 

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,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top