Duappighisa
New Member
I have an .ascx file with my markup, I also have a corresponding .ascx.cs.What I want is to reference somewhere else in the same project, in a standard .cs file, the class that is the result of ascx compilation.I do not want to use ASP.NET precompilation, or Web Site Deployment project (because it is very slow!).example:Foo.ascx\[code\]<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Foo.ascx.cs" ClassName="Foo" Inherits="FooBase" %>\[/code\]Foo.ascx.cs\[code\]contains FooBase definition\[/code\]Bar.cs\[code\]... something.register(Foo);...\[/code\]the core of the problem is the way we want to register views in dependency injection mechanism. I would not want to change it if there is a way to get the compiler to recognize the types in correct order.