Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellisense not showing up for new controls in code behind

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?

like image 308
Bill Martin Avatar asked Dec 18 '22 09:12

Bill Martin


1 Answers

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.

like image 175
Jason Avatar answered Dec 24 '22 01:12

Jason