The @ Assembly directive declaratively links an assembly against the current page, making all of its classes and interfaces available for use on the page. Developers can also use this directive to register assemblies in the configuration file to link assemblies across the entire application.
<%@ Assembly Name="assemblyname" %>
Attributes
Remarks
Assemblies that reside in an application's /bin directory are automatically linked against the page. Such assemblies do not require the @ Assembly
directive.
It is not necessary to include the path of an assembly in an @ Assembly
directive.
The automatic linking described above is disabled by removing the following line from the <assembly>
section of the config.cfg file:
<add assembly="*"/>
As an alternative to using the <%@ Assembly %>
directive, you can register such assemblies within the config.cfg file to link assemblies across an entire application.
Example
The following code fragment uses the <%@ Assembly %>
directive to link against MyAssembly.dll:
<%@ Assembly Name="myassembly.dll" %>
See Also
ASP+ Page Syntax | Directives