Intellisense does not appear for new controls in code

I added a label control to the web form. It appears when I start the page, but when I try to link to it using code, I do not get intellisense, and the code that I write somehow does not work. I checked that the project is running in debug, this debug compilation is installed in the web.config file. In fact, I can debug all pages. However, when I go to this page, debugging is done on it, as if there is no breakpoint. In addition, at the breakpoint, he says: β€œAt the moment, the breakpoint will not be deleted. The source code is different from the current code,” which has the main problem. I don’t know why this happened when I recompiled the whole project.

I have this at the top of the page:

print("<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberSearch.aspx.cs" Inherits="Portal.EmployerPortal.MemberSearch" Debug="true" %> ");

Any ideas?

+4
source share
6 answers

In the past, I had problems with this because the files with the auto-generated designer were bad. Try to delete them, and then allow VS to recreate them, this may fix the problem.

+5
source

Try assembly -> Clean Solution

+2
source

This is a common problem with VS. This is usually caused by .designer files that are not regenerated due to any layout problems.

After deleting the .designer file, right-click the project name in Solution Explorer and select Convert to Web Application.

If this does not help read the following article for more information .

+2
source

Sometimes with me something like this from time to time ... I add a control and I do not get intellisense ... VS basically does not know that the control is on the page / designer. If I close the file (codebehind and HTML) and come back ... everything will be honest. Clumsy, but it works. Worth a try. I am using 2008 BTW.

+1
source

In the menu "Visual Studio" "Tools | Option" and in a text editor | All languages ​​have established that there are three flags for Filling out the Application, in which neither a blank nor a flag is displayed, but is completely colored, which usually means unknown settings. So, a set of all these checks (checkmark), and my Intellisense started working

for more details use the following link

http://forums.asp.net/t/1520617.aspx?Intellisense+not+displaying+controls+in+the+code+behind

+1
source

On Windows 8, for some reason, I have to explicitly run visual studio as an administrator in order to get intellisense in my views.

0
source

All Articles