|
|
 |
Re: FN-FORUM: .Net Form Posting
date posted 25th February 2008 18:22
Phillip Healey wrote:
> However i can pass the page onto Paypal rather than PostBack by using this; ' Document.Mainform.Action=[paypal url]'?????
> Is that right Ben?
>
> So when the user clicks the button it posts the data to PayPal url????
>
I believe so, but you'll have to check the documentation for the exact
terminology. I tend to work with a general idea of what the API can do
and lots of help docs open to remind me how exactly it works in the
current language.
You may not have to change it programmatically, possibly you can just
set it as a property of the form.
> Ok but what if i don’t want the user to have to click a button, but for the page to follow the Paypal url without user interaction. Thus making this page load, do its stuff, then goto PayPal without the user knowing the page was ever
You can always just drop in a little JavaScript form submit bit there.
It's not like ASP.Net will be any the wiser.
That way users with Javascript on will get posted straight through
anyways. People who switch off javascript as a matter of course deserve
to have to click extra buttons, troublemakers that they are.
-ben
|
 |
|