asp.net form tag error

Status
Not open for further replies.

meghraj

Broken In
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

In the zone
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.
 
Status
Not open for further replies.
Top Bottom