Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
@ Import -- Global.asax
Collapse the table of content
Expand the table of content

@ Import — Global.asax

.NET Framework 1.1

Explicitly imports a namespace into an application, making all classes and interfaces of the imported namespace available to the application. The syntax for the @ Import directive is as follows.

<%@ Import namespace="value" %>


The name of the namespace to import to the application. This can be any of the namespaces included in the .NET Framework or a custom namespace.


You must use a single @ Import directive for each namespace you want to import.


The following code uses @ Import directives to import the System.IO and System.Collections namespaces for use throughout an application.

<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Collections" %>

See Also

Global.asax Syntax | Application Directives

© 2015 Microsoft