Reputation: 67230
I have two .ascx files in the same folder in an ASP.NET MVC project.
In one of them intellisense is working fine. In the other 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#.
Upvotes: 3
Views: 2655
Reputation: 25813
Try rebuilding your project. Intellisense doesn't work in views until it has been built.
Upvotes: 2
Reputation: 781
Sometimes I find deleting the designer.cs file, and then right clicking the .ascx and selecting 'Convert To Web Application' (which re-gens the desinger file) fixes weird intellisense errors.
Upvotes: 1