post to another website

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
 
S

Steve C. Orr [MVP, MCSD]

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.
 
G

Guest

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
 
S

Steve C. Orr [MVP, MCSD]

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.
 
G

Guest

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
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top