homepage Welcome to WebmasterWorld Guest from 107.20.109.52
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

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




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

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

Thanks in advance.

 

txbakers




msg:944335
 9:09 pm on Oct 6, 2005 (gmt 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">

deepali2005




msg:944336
 4:32 am on Oct 7, 2005 (gmt 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?

isaaclloyd




msg:944337
 6:42 pm on Oct 7, 2005 (gmt 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~

deepali2005




msg:944338
 4:16 am on Oct 8, 2005 (gmt 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..

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved