Welcome to WebmasterWorld Guest from 54.144.1.142

Forum Moderators: ocean10000

Message Too Old, No Replies

Post form data

How to post the form data from ASP.net to specified URL?

     
11:28 am on Oct 6, 2005 (gmt 0)

New User

10+ Year Member

joined:Oct 5, 2005
posts:9
votes: 0


I need to post the ASP.net form to ASP file from another web Site. How to do this?

Thanks in advance.

9:09 pm on Oct 6, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 1, 2001
posts:4392
votes: 0


Hi and welcome to the Webmaster World!

You can do this in the action of the form tag:

<form method = "post" name = "theform" action="http://www.example.com">

4:32 am on Oct 7, 2005 (gmt 0)

New User

10+ Year Member

joined:Oct 5, 2005
posts:9
votes: 0


I had created ASP.net form. I submitted the form to another ASP form. but in that ASP form, I could not retrive the ASP.net from element values.

What can I do to use that ASP.net form element values in ASP form?

6:42 pm on Oct 7, 2005 (gmt 0)

New User

10+ Year Member

joined:Feb 22, 2005
posts:29
votes: 0


Well if you are wanting to recieve the submitted form values there is two ways. If you submit a form using the "POST" method then on the "recieving" page you would get your value using:

MYVALUE = Request.Form("formVALUE")

If you submit a form using the "GET" method then on the "recieving" page you would get your value using:

MYVALUE = Request.querystring("formVALUE")

~Isaac~

4:16 am on Oct 8, 2005 (gmt 0)

New User

10+ Year Member

joined:Oct 5, 2005
posts:9
votes: 0


hi isaaclloyd,

I know these 2 methods. but while I post the ASP.net form to ASP form then, the values are "null" or undefined in ASP form.

Thanks for ur suggesstion..