Click here to Skip to main content
15,949,686 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:
C#
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.
Posted
Updated 18-May-12 10:10am
v2

1 solution

Hi,

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.
-AK
 
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