Post a form from asp to asp.Net

Posted by Atomiton on Stack Overflow See other posts from Stack Overflow or by Atomiton
Published on 2010-04-23T14:58:28Z Indexed on 2010/04/23 15:03 UTC
Read the original article Hit count: 477

I have a classic asp application. I want to post a contest form from that page to an Asp.Net form. The reason is that I want to use a lot of logic i have built into an Asp.Net page for validation before entering into the database and I don't know asp very well. Not to mention asp.Net being more secure.

What's the best way to accomplish this goal? My thoughts are as follows:

My asp Page:

<html>
  <body>
    <form action="/Contests/entry.aspx" method="post">
      Name: <input type="text" name="fname" size="20" />
      Last Name: <input type="text" name="lname" size="20" />
      <input type="submit" value="Submit" />

    </form>
  </body>
</html>

aspx page is running in a Virtual Directory and would handle anything posted to it.

Is this possible, or does aspx prevent this kind of thing?

I ( preferably ) don't want to create the form in aspx as my colleague wants to have control of the page and build the html himself and I don't want the hassle of constantly changing it.

Are there caveats I need to consider?

What roadblocks will I run into?

How do I access the Posted Form Values? Request.Form?

© Stack Overflow or respective owner

Related posts about asp-classic

Related posts about ASP.NET