Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Nav Menu Wont Fire when a control has a Form on it
posted

I have my page setup with 2 div's 1 being the Nav menu Control and the other being the actual Content Control for the page as follows ..

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div class="divNavMenu">
   <uc1:conNavMenu ID="conNavMenu1" runat="server" />
 </div>
  
 <div class="divOnlineInventorySearch">
   <uc2:conInventoryPage ID="conInventoryPage" runat="server" />
 </div>
</asp:Content>

Now when I navigate to any of my other pages with the Nav Menu (Which also have the same code in the other pages just changing of course the 2nd div's control its displaying) I have no issues. But when I navigate to this page which has a basic

html <form> on it it completely breaks the nav menu's navigation where I cannot click on any of the buttons. Altho the Mouse Hover still does work on the Nav menu. Any Idea's what could possibly be doing this?

**** Please remove post I got it to work. I had to wrap my Nav menu control's div inside its own form which ran on the server. it must have been getting messed up with my other form on my inventory control which did not run server side **** Thanks

Parents
No Data
Reply
  • 45049
    posted

    I suspect your page may be rendering with two HTML form elements.  Can you confirm whether or not this is occurring?

    ASP.NET controls (including ours) expect exactly one HTML form on the page.  If you're rendering two form elements, you should remove one.

Children
No Data