I have a project that was previously built by someone else. When I try to add a new control to the page, I can\'t access it in the code behind. When I try to access it there
Use CodeBehind attribute instead of CodeFile attribute of Page tag.
CodeBehind
CodeFile
Eg:
<%@ Control Language="C#" AutoEventWireup="true" **CodeBehind**="Results.ascx.cs" Inherits="MyApp.Results" %>