Importing C# code into Web Application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've created a C# class to access the Active Directory. I want to use this
code in several different web applications. Do I have to create a dll for
that code or can I import the code directly using something like ASP include
statement?
<!--#include virtual="/blahblah/ad_functions.inc"-->

Thanks for the help.
 
Create a DLL. You can copy it to each applications bin directory, or add it
to the GAC. ASP.NET can use shared assemblies, which reside in the global
assembly cache, and application-specific assemblies, which reside in the
\bin directory of the application's virtual root.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
Back
Top