ASP.NET Syntax Global.asax Syntax Application Directives
Explicitly imports a namespace into an application, making all classes and interfaces of the imported namespace available to the application.
<%@ Import namespace = "value" %>
- value
- The valid namespace to import.
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" %>
ASP.NET Applications