post to another website

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to have a button on a web page that posts information contained on
this page to another web page on a completly separate site? How do I
accomplish this?

Thanks

Eric
 
I'm assuming you want the user to be sent to that new site that you're
posting to. (Posting to another site and capturing the output all from
within your server code (invisible to the user) is another topic.)

Here are some options:
1) Output an old fashioned non-server form to the client (without the runat=
'server' attribute) Set the action attribute like you would have in
ASP.OLD, and use javascript to submit the form.
2) use client side script to change your ASP.NET form action attribute
3) use this webform control: http://www.wilsondotnet.com/Controls/

Note: In ASP.NET 2.0 you will be able to more easily post to another page.
 
What type of client side code would I have to write to do this? Examples?

Or If I outputed an old fashion form, would this mean I will still be able
to fill in the fields, just the submit button will go to another page?
Examples?

The wilson form is great, except this is some baggage with it.

Thanks

Eric
 
The user would still be able to fill in the fields.
If it's not a server form, though, then it will be more difficult to fill in
the fields from server side code if that's what you're asking.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
 
The user fills in one section, but the application fills in the rest of the
form before it is shipped over to the other web site. Can this still be
accomplished? Also is this a way to pass the path over to the html input box
with it's type file? Or is there a substitute control that will emulate
input box with type file, but allow the program to set the directory?

Thanks

Eric
 
Back
Top