07-23-2023, 08:05 AM
Use `CodeBehind` attribute instead of `CodeFile` attribute of Page tag.
Eg:
<%@ Control Language="C#" AutoEventWireup="true" **CodeBehind**="Results.ascx.cs" Inherits="MyApp.Results" %>
Eg:
<%@ Control Language="C#" AutoEventWireup="true" **CodeBehind**="Results.ascx.cs" Inherits="MyApp.Results" %>