A
anujit.basu
Hi,
Newbie here.
I have a couple of user controls (yes, header and footer) in a
directory "Controls" that are working properly in a web page when used
declaratively.
I am now trying to use the controls in a c# file in the App_Code
directory, and the two user controls are out of scope.
The @ Control directive for the user controls in the looks like:
<%@ Control Language="C#" ClassName="MyHeader"
AutoEventWireup="true" CodeFile="MyHeader.ascx.cs"
Inherits="MyHeader" %>
What I can figure out that the class is called MyHeader, and I have
included the project's default namespace in the using block, but still
no resolution.
What am I doing wrong?
Thanks for any help.
/Anujit
Newbie here.
I have a couple of user controls (yes, header and footer) in a
directory "Controls" that are working properly in a web page when used
declaratively.
I am now trying to use the controls in a c# file in the App_Code
directory, and the two user controls are out of scope.
The @ Control directive for the user controls in the looks like:
<%@ Control Language="C#" ClassName="MyHeader"
AutoEventWireup="true" CodeFile="MyHeader.ascx.cs"
Inherits="MyHeader" %>
What I can figure out that the class is called MyHeader, and I have
included the project's default namespace in the using block, but still
no resolution.
What am I doing wrong?
Thanks for any help.
/Anujit