473,396 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Referencing class methods when using JIT directives

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

--
www.SimplicityIsGenius.com
Jan 19 '06 #1
1 882
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

--
www.SimplicityIsGenius.com
"Eric Lemmon" wrote:
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

--
www.SimplicityIsGenius.com

Jan 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Macka | last post by:
A few pieces of information first: * I have a class called Folder which represents a row of data in a database table. The data access side of things is not an issue. * The table has a parent...
12
by: Pollux | last post by:
I'm having trouble doing someting apparently simple. I'm still not very familiar with Visual Studio 2003, so apologies if I've missed something obvious. Basically my problem is the following. I...
13
by: Dan Bass | last post by:
Say I've got an ArrayList, which contains a list of integers. Is it possible to get a reference to one of the integers contained within the collection so that changes to it are reflected in the...
1
by: Sasha Nikolic | last post by:
I have defined a managed class ( __gc ) and a unmanaged ( __nogc ) in a separate files (but in the same vc++ dotnet project). I have no problem of referencing the unmanaged class from the menaged...
4
by: TWEB | last post by:
I think I may have an IIS / ASP.Net Configuration issue that I need some guidance with resolving. Here's the problem: a) I have a .stm file. b) I referenc a .aspx file on this .stm file using a...
1
by: Mike | last post by:
Hello, I am attempting to develop a class that will inherit from System.Web.UI.Page to serve as a the base class for all of the code behind classes in my web application. I would like to store...
49
by: Ben Voigt [C++ MVP] | last post by:
I'm trying to construct a compelling example of the need for a language feature, with full support for generics, to introduce all static members and nested classes of another type into the current...
8
by: elmosik | last post by:
Is there any method to get this informations from php file? 1. Class methods 2. Check whether class in file is extended by 'XXX' or not (class MyClass extends XXX ...) - Class has same name...
2
by: Andrus | last post by:
I need compile in-memory assembly which references to other in-memory assembly. Compiling second assembly fails with error Line: 0 - Metadata file 'eed7li9m, Version=0.0.0.0, Culture=neutral,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.