asp.net.ph

Skip Navigation Links

@ Assembly — global.asax

ASP.NET Syntax   Global.asax Syntax   Application Directives


Links an assembly to the application at parse-time.

<%@ Assembly name = "value" %>

Parameters

value
The name of the assembly to link against.

Remarks

You can also register assemblies for your application in its web.config file. For more information, see ASP.NET Configuration.

Syntax Example

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" %>
See Also

ASP.NET Applications



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note