B
Blue Ball
In my aspx page, I want to import a .cs file, but I don't want to compile to
dll. Is it possible?
I know that codebehind can do it in Page level, but it forces me to use
inherits which I don't want to:
@Page Inherits="code.page" src="code.cs"
In this case, my code.cs has to inherits from System.Web.UI.Page.
As far as I know, @Import directive only works with dll. it seems not
able to import a source file
Is is possible to just import the class (from a .cs file) to my aspx page?
dll. Is it possible?
I know that codebehind can do it in Page level, but it forces me to use
inherits which I don't want to:
@Page Inherits="code.page" src="code.cs"
In this case, my code.cs has to inherits from System.Web.UI.Page.
As far as I know, @Import directive only works with dll. it seems not
able to import a source file
Is is possible to just import the class (from a .cs file) to my aspx page?