问题
When I type <
in the Markup Mode of Visual Studio 2010, I don't get any server-side controls (ie. <asp:textbox />
), I just get a list of standard HTML controls.
This used to work, but one day just stopped.
Why could this be?
P.S: I'm a VB.NET Programmer, and intellisense is working fine in the .vb files.
回答1:
Navigate here: C:\Users\USERNAME\AppData\Roaming\Microsoft\VisualStudio
And delete the contents of the folder labeled '10.0'. This worked for me.
回答2:
- Check file extension - editor bindings in preferences.
- Check the system.web\pages\controls config section in your web configuration file.
- Check the system.web\compilation\assemblies section too.
来源:https://stackoverflow.com/questions/3310526/asp-net-markup-intellisense-not-working-in-visual-studio-2010