Forum Moderators: open

Message Too Old, No Replies

Post form data

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

         

deepali2005

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

10+ Year Member



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

Thanks in advance.

txbakers

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

WebmasterWorld Senior Member 10+ Year Member



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">

deepali2005

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

10+ Year Member



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?

isaaclloyd

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

10+ Year Member



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~

deepali2005

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

10+ Year Member



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