Assembly Directive in ASP.Net

The @Assembly directive is used to make your ASP.NET page aware of external components. This directive supports two attributes:

@Assembly Directive

The @ Assembly directive can be used in .aspx pages, .ascx files, .master pages and .asax files.

<%@ Assembly Name="assemblyname" %>
<%@ Assembly Src="pathname" %>

Name: A string that represents the name of the assembly to link. Here you should mention the filename without the extension.

Src: The path to a source file to dynamically compile and link against.

You must include either a Name or a Src attribute in an @ Assembly directive, but you cannot include both within the same directive. If you need to use both of these attributes, you must include multiple @ Assembly directives in the file.
Tags: , , ,
Hot on Web:

About author