Rank: Newbie Groups: Member
Joined: 11/27/2007 Posts: 1
|
I'm getting this error message when I try to create a BaseMenu object. I'm trying to create a BaseMenu in a WebControl so I can use it in my Page Base, so it'll appear on all pages. When I run base.Render(writer), I get this error message:
Menu '_ctl16_BaseMenu1' must be placed inside a form tag with runat=server.
When I try to put a form tag with runat=server around the BaseMenu, I get the error message:
A page can have only one server-side Form tag.
I don't know what to do to fix this. Please help!
Thanks, Nir
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Each Web Form has a form tag. You must place our Menu inside that form tag. You can not put it outside, and obviously you can not have more than one form tags either, as you have discovered. So basically you need to find the one and only form tag and put our menu inside.
Thanks
|