ASP to ASP.NET conversion question

  • Thread starter Thread starter Framework fan
  • Start date Start date
F

Framework fan

Hi,

What is the .NET equivalent of the following classic ASP please

<form id="Form1" method="post" action="http://www.domain.com">
<INPUT name="ThisGetsPostedToDomainAbove">
<INPUT id="MyButton" type="submit" value="Click here">
</form>

In the above example, this non server side form will post the
information contained in the input field named
ThisGetsPostedToDomainAbove when the button called MyButton is
clicked.

Thanks.
 
Framework fan said:
Hi,

What is the .NET equivalent of the following classic ASP please

<form id="Form1" method="post" action="http://www.domain.com">
<INPUT name="ThisGetsPostedToDomainAbove">
<INPUT id="MyButton" type="submit" value="Click here">
</form>

In the above example, this non server side form will post the
information contained in the input field named
ThisGetsPostedToDomainAbove when the button called MyButton is
clicked.

Since your form is not ASP-specific (it contains no code), you can
use exactly the same form in ASP.NET.

However, the page that handles your input (at www.domain.com) will differ.
 
Hi Jos,

I have no control over the page at www.domain.com.

Please could you suggest an alternative, as I can't change what is at domain.com

Many thanks.
 
Back
Top