Post non-asp form to ASP.net Page

H

Hellp

Any help appreciated.

I have a non-asp page with a form as follows:

<FORM action='FormPost.aspx' method=post encType=text/plain>

<INPUT type=hidden value=" GHT Tankage">
<INPUT size=6 name=2977_>
<INPUT size=40 name=note2977_>
<INPUT type=submit value=Submit>

</FORM>

I would like to pass the form name/values pairs to the FormPost.aspx
page so it can write the values into a database.

I don't just use a .aspx form page to begin with because I have to
accept the post from a page designed by someone else. Also, I can't
use the get method due to the large number of fields being posted.

Can anyone give me the basic asp.net code to read the collection of
name/value pairs past by the post.

Thank you for the help. Much appreciated
 
K

Karl

You can simply access the values via Request.Form(FIELD_NAME), like
Request.Form("2977_")

karl
 

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
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top