G
Guest
Greetings,
In my ASP.NET application, I have user controls that refer to each other's
static methods. It works fine using the standard DLL compilation.
I now have a requirement where I need to get rid of my DLL, and go
completely wth JIT compilation using the Src attribute in each user control's
@Control directive:
<%@ Control Language="c#" AutoEventWireup="false" Src="myCtl.ascx.cs"
Codebehind="myCtl.ascx.cs" Inherits="myNS.myCtl"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
When I do this, though, I get the error:
The type or namespace name 'myCtl' does not exist in the class or namespace
'myNS'
The page only displays when I eliminate all references to the code behind
and only reference the ascx contents.
I thought that either @Import or @Referenct would do the trick, but no luck.
Any ideas on how to get this working?
Many thanks,
Eric
In my ASP.NET application, I have user controls that refer to each other's
static methods. It works fine using the standard DLL compilation.
I now have a requirement where I need to get rid of my DLL, and go
completely wth JIT compilation using the Src attribute in each user control's
@Control directive:
<%@ Control Language="c#" AutoEventWireup="false" Src="myCtl.ascx.cs"
Codebehind="myCtl.ascx.cs" Inherits="myNS.myCtl"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
When I do this, though, I get the error:
The type or namespace name 'myCtl' does not exist in the class or namespace
'myNS'
The page only displays when I eliminate all references to the code behind
and only reference the ascx contents.
I thought that either @Import or @Referenct would do the trick, but no luck.
Any ideas on how to get this working?
Many thanks,
Eric