ASP.NET Syntax Global.asax Syntax Application Directives
Links an assembly to the application at parse-time.
<%@ Assembly name = "value" %>
- value
- The name of the assembly to link against.
You can also register assemblies for your application in its web.config file. For more information, see ASP.NET Configuration.
The below code snippet show how you would use this directive to link to the myAssembly.dll
assembly, as well as two of the assembly’s namespaces, myAssembly.myNamespace.Baz
and myAssembly.myNamespace.Biz
.
<%@ Assembly Name = "myAssembly.dll" %>
<%@ Import Namespace = "myAssembly.myNamespace.Baz" %>
<%@ Import Namespace = "myAssembly.myNamespace.Biz" %>
ASP.NET Applications