Visual Studio intellisense not working in a single .ascx file

I have two .ascx files in the same folder in an ASP.NET MVC project.

In one of them, intellisense works fine. In another, it does not work at all. Any ideas? The files are very similar with the same @control definition at the top.

Using VS2008 and C #.

+2


source to share


2 answers


Try rebuilding your project. Intellisense doesn't work in views until after it's built.



+1


source


Sometimes I find deleting the designer.cs file and then right clicking on the .ascx and choosing Convert to Web App (which updates the desinger file) fixes the strange intellisense errors.



+1


source







All Articles