Welcome Guest Search | Active Topics | Sign In | Register

Menu '_ctl16_BaseMenu1' must be placed inside a form tag with runat=server. Options
Nir
Posted: Tuesday, November 27, 2007 6:25:47 PM
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
eo_support
Posted: Tuesday, November 27, 2007 6:50:54 PM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.