S
ss
I have a .cs file and i want to refer to it at run time
without compiling it into a dll. Is it possible?
without compiling it into a dll. Is it possible?
without compiling it into a dll. Is it possible?
System.Web.UI.Page. This gets JIT-----Original Message-----
yes, in ASMX, the code is compiled before running.
In ASPX, you can do this:
<%@ Page Language="VB"
Src="HelloWorld.aspx.vb"
Inherits="MyNamespace.MyTypeName"
Debug="true"
Trace="true"
%>
And then in source file HelloWorld.aspx.vb, you define a type
MyNamespace.MyTypeName that Inherits
compiled when the page is requested.
reference:
from
http://msdn.microsoft.com/library/en- us/vbcon/html/vbconWebFormsCodeModel.asp
-Dino
--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
Thanks Mattias..
But, then how it is done in webservices [.asmx]
<@Assembly Src="" /> Directive?
Is it that the @Assembly Directive first compiles and
places in the assembly ? If so, do you know any such
equivalent tag for .aspx files ?
-----Original Message-----
If you by "refer" mean run the code, then no. You have to compile it
first.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
.
.
System.Web.UI.Page. This gets JIT-----Original Message-----
yes, in ASMX, the code is compiled before running.
In ASPX, you can do this:
<%@ Page Language="VB"
Src="HelloWorld.aspx.vb"
Inherits="MyNamespace.MyTypeName"
Debug="true"
Trace="true"
%>
And then in source file HelloWorld.aspx.vb, you define a type
MyNamespace.MyTypeName that Inherits
compiled when the page is requested.
reference:
from
http://msdn.microsoft.com/library/en- us/vbcon/html/vbconWebFormsCodeModel.asp
-Dino
--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
Thanks Mattias..
But, then how it is done in webservices [.asmx]
<@Assembly Src="" /> Directive?
Is it that the @Assembly Directive first compiles and
places in the assembly ? If so, do you know any such
equivalent tag for .aspx files ?
-----Original Message-----
If you by "refer" mean run the code, then no. You have to compile it
first.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
.
.