Hello.
I am relatively new to ASP.NET and after having a good mess around myself I have come to a stand still.
I have a menu "web.sitemap", a master page "masterpage.master" and a content page "content.aspx". I would like to have my menu displayed on every page in my website so I have decided that I will put it on the master page. This menu requires a serverside form in order to work, so I have added it to a serverside form like below.
<asp:SiteMapDataSource id="nav" runat="server" />
<form runat="server">
<asp:Menu runat="server" DataSourceId="nav1" />
</form>
Now, each of my content pages (in this case "content.aspx") have their own serverside forms for their own duties.
This causes a conflict of interests, in that a webpage cannot have more than one serverside form. I can of course remove the form inside the content page and add the content placeholder inside the form of the master page as a quick fix but this does not solve the problem, i think.
Is there a solution to this problem? I would like to keep the serverside forms inside the content pages to carry out their duties if it is possible.
Thanks.