DIGIT-ARC read-only archive · snapshot: July 23, 2026

asp.net form tag error

3 posts · originally from https://geek.digit.in/community/threads/asp-net-form-tag-error.124819/

M
meghraj Original post #1
Mar 3, 2010 at 12:47 PM
Hello, friends I have created a master page in VS2008 it contain a form tag in it and the other form tag is present in aspx file....but when I try to call that aspx file it give me an error of HttpException ( 0x80004005) :A page can have only one server-side ... Check whether u have any two form tag available in the page when I remove one of the form tag from any of the file it keeps working but when I use form then it keeps giving me error...what should I do....is there any alternative option for keeping two form tag...

is there any way to manage this...please help.
dd_wingrider
Mar 3, 2010 at 1:39 PM
You can try something like this
form ....>
</form>
<form ... runat="server">
<asp:contentplaceholder>
</asp:contentplaceholder>
</form>

but yes you can have only one form tag with runat server while using a master page. Since you have one in master page don't repeat it in the child pages.
tarey_g
tarey_g #3
Mar 3, 2010 at 3:26 PM
but yes you can have only one form tag with runat server while using a master page. Since you have one in master page don't repeat it in the child pages.

+1. .