473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

post to another website

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
Nov 19 '05 #1
4 1421
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"ejswanson" <ej*******@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
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

Nov 19 '05 #2
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

"Steve C. Orr [MVP, MCSD]" wrote:
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"ejswanson" <ej*******@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
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


Nov 19 '05 #3
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
"ejswanson" <ej*******@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
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

"Steve C. Orr [MVP, MCSD]" wrote:
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"ejswanson" <ej*******@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
>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


Nov 19 '05 #4
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

"Steve C. Orr [MVP, MCSD]" wrote:
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
"ejswanson" <ej*******@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
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

"Steve C. Orr [MVP, MCSD]" wrote:
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"ejswanson" <ej*******@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
>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


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Victor | last post by:
I need to redirect to another web page, but that redirect will include the submission of form data. So, unlike ServerXMLHTTP which stays on the originating web page, I need the script to redirect...
2
by: DJ | last post by:
Hi, I've got following problem - after clicking button on my page I have to redirect user to another website using the post method. While redirecting I have to send some values to that website...
0
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use...
5
by: Tyler | last post by:
I am developing an application which will allow me to automatically sign into an external website. I can currently do a screen scrape using HTTPWEBREQUEST. However I want to just redirect to the...
56
by: UKuser | last post by:
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.