Guy
Guy

Reputation: 67230

Visual Studio intellisense not working in one .ascx file

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

Answers (2)

Lance Fisher
Lance Fisher

Reputation: 25813

Try rebuilding your project. Intellisense doesn't work in views until it has been built.

Upvotes: 2

IniTech
IniTech

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

Related Questions