Intellisense not showing up for new controls in code behind

Welcome to Programming Tutorial official website. Today - we are going to cover how to solve / find the solution of this error Intellisense not showing up for new controls in code behind on this date .

I’ve added a label control to a webform. It appears when I run the page but when I try to reference it using the codebehind, I get no intellisense and the code I write somehow doesn’t work. I’ve verified the project is running in debug, that debug compilation is set in the web.config. In fact, I can debug all pages. However, when i go to this page, debugging runs over it as if there is no breakpoint set. Also, on the breakpoint, it says ‘The breakpoint will currently not be hit. The source code is different from the current code’ which has the be the main issue. Not sure why that’s happening as 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?

Answer

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