Posts
33
Comments
153
Trackbacks
0
September 2010 Entries
Having multiple tags in ASP.Net web page

Often we want to have more than one form in the web page, just like in HTML or in classic ASP - except ASP.Net throws an error saying 'Only one <Form> tag can exists in Body'.

The error message thrown by ASP.Net runtime compiler is not comprehensive, it should say that there can be only one <Form> tag with runat=server attribute.

This means we can have more than one form tags in our ASP.Net HTML but only one of them can be server side. Rest of the forms have to be client side HTML forms.

Hope this helps!

Posted On Tuesday, September 28, 2010 3:34 PM | Comments (3)