Go to `Tools \ Options` and then to `Web Forms Designer`. If you are using `Web Live Preview` then switch back to the legacy designer. Restart VS. I suspect the issue is that the ASPNET Menu control isn't supported with Web Live Preview.
Cannot drag Menu from the Toolbox in ASPX
The menu was accidentally deleted from my ASPX project, and when I tried dragging it from the Toolbox, it would not work.
How can I bring back the menu?
-
Michael Taylor 56,091 Reputation points
2025-01-14T16:13:02.9066667+00:00
1 additional answer
Sort by: Most helpful
-
Michael Taylor 56,091 Reputation points
2025-01-14T15:31:33.03+00:00 A couple of things that prevent drag and drop from working.
- If the web app is being debugged right now then the designer is generally read only. Ensure you are not actively debugging the app.
- The designer shows you the entire page layout including any raw HTML and parent/master page content. You cannot drag/drop a control onto parent/master page layout. Furthermore you cannot drag/drop a control onto a control that doesn't support children (e.g. text box). Ensure you are drag/dropping onto either the body or a div.
Test to see if this is just a menu issue. Can you drag/drop a textbox or button onto the form without issue?
If you previously had it on the form then can you revert back to your old version in source control?
A final approach is to simply open the markup editor where you can see the raw HTML and put in the control manually so it shows up. Basically that means the base HTML element, the
id
andname
attributes and therunat
attribute. After that you should be able to switch back to the designer and see the control so you can edit the rest of the stuff.