For ASP.NET 1,1, compile the code from the command-line,
and import/reference the resulting assembly.
Open a command window and make sure the
1.1 .Net Framework directory is in your system path, by running
PATH= %PATH% & C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 ;
Substitute the correct drive letter if you're booting from a different drive.
Also, if you have a non-standard Windows install,
replace "windows" with your custom-named install directory.
To compile a single source code file, use :
csc /t:library /out:globallibra ry.dll globallibrary.c s
To compile all .cs files in a directory to globallibrary.d ll ,
use : csc /t:library /out:globallibra ry.dll *.cs
If you need to reference a .Net Framework assembly or assemblies,
add them, separated by slashes :
csc /t:library /r:system.dll /r:system.data.d ll /out:globallibra ry.dll *.cs
Once you have compiled your assembly, place it in the /bin
directory of your application, and import your class Namespace in any aspx page:
<%@ Import Namespace="Your NameSpace" %>
If you're working with VS.NET, compile your assembly
as described and add a reference to it in your VS.NET project.
That will allow you to use Intellisense and get your
assembly's properties, methods, etc. when coding.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
=============== =============== ========
"Bodyboarde r20" <Sh**********@g mail.comwrote in message
news:11******** **************@ p47g2000hsd.goo glegroups.com.. .
Oh, btw... this is .NET 1.1 ( I know, my work is nuts )
!from one "code" file from another "code behind" file....
Place globallibrary.c s in the App_Code directory.
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
=============== =============== ========"Bodybo arder20" <ShieldsJa...@g mail.comwrote in message
news:11******** *************@g 4g2000hsf.googl egroups.com...
Hey,
I'm sure this is an easy question for most.
I would like to create a class with a bunch of "library" functions...
But I'm not sure how I would configure it so that I can call functions
from one "code" file from another "code behind" file....
Page1.aspx ---Page1.aspx.cs ---globallibrary.c s
Is this possible?
Thanks!- Hide quoted text -
- Show quoted text -