Click here to Skip to main content
15,903,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi dears,
i hide a dive tag from sitemaster in other page which inherit sitemaster,
with this code:
HtmlContainerControl div = (HtmlContainerControl)this.Master.FindControl("mydive");
div.Visible = false;

it's worked but send this error:
A page can have only one server-side Form tag.
Updated 18-May-12 10:10am

1 solution


As I think you have taken the form tag inside the content page.
Just remove that. Use the form tag in master page only. It'll work.

All the best.
Share this answer

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

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