I have a solution containing an ASP.NET WebForms Website and a MVC 5 Application. The WebForms project contains a MenuControl
for main navigation. I need to have the same menu in the MVC Project as well.
I tried to get the html of the menu using the solution mentioned at https://stackoverflow.com/a/58931/1300140 without any success. It is throwing an error saying "Control 'ctl03' of type 'Menu' must be placed inside a form tag with runat=server"
How can I get the HTML output of the Menu? Also, is there any better way to achieve what I am trying to do?