Click here to Skip to main content
15,908,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
error-A page can have only one server-side Form tag.
what do u mean by ths error...
Posted

 
Share this answer
 
ASP.NET web forms can only have one server side form tag which can be used on a rendered page. You can have other forms, but they just can't have the runat="server" attribute.

Make sure you don't have two <form runat="server"> tag in your page. And if your page is attached to master page, make sure master should not contain <form runat="server">.

hope it helps :)
 
Share this answer
 
v2
only one server-side form tag is allowed on a page. This error occurs if you have two or more server-side form tags on your page.
View source of your page and search for form tag and remove it if its being placed at two locations.
Refer discussion at code project for the same
http://www.codeproject.com/Messages/3171846/A-page-can-have-only-one-server-side-Form-tag.aspx[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900