Author: ihorko | Posted on: 3/30/2009 10:39:11 AM | Views : 864

Could anyone explain me does PostBackUrl property in Button is fully substitution for multiple <form> tags.

for example in classic asp i can have:

<body>

 <form action="page1.aspx" method="post">

<input type="hidden" value="value1">

<input type="button" value="post to page 1">

 </form>

 

 <form action="page1.aspx" method="post">

<input type="hidden" value="value2">

<input type="button" value="post to page 2">

 </form>

</body>

 

so, can I surely translate this code to ASP.NET:

<body>

 <form action="page" method="post" runat="server">

<input type="hidden" value ...

Go to the complete details ...