How to Have Multiple Forms on an ASP.NET Page

An ASP.NET page can contain multiple HTML forms on but there can be only one form designated as runat=”server”.

You could create the appearance of two or more forms by placing all theĀ fields in the single server-side form and then using several submit button each which has a different click event taking data from different c0ntrols.

If you elect to use standard HTML forms, you can use Request.Form to access the fields in those forms.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>