Referencing class methods when using JIT directives

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
 
G

Guest

As a follow-up, I was able to get this working without any code changes by
configuring IIS to handle my app using the .NET Framework 2.0 instead of 1.1.
Might this be a bug/oversight in 1.1?

Thanks,

Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,742
Latest member
AshliMayer

Latest Threads

Top