Importing Namespaces

The Import directive is used to import a namespace for use in your template. This lets you refer to types in other assemblies more conveniently. For instance, when you're using the SchemaExplorer assembly, you probably don't want to have to prefix every type from that assembly with the name of the assembly. The solution is to include an Import directive in your template along with the Assembly directive:

<%@ Assembly Name="SchemaExplorer" %>
<%@ Import Namespace="SchemaExplorer" %>
Import Directive Attributes

There is one required attribute that you must supply to the Import directive.

Namespace

The Namespace attribute specifies the fully qualified name of the namespace to be imported.