asp.net.ph

Skip Navigation Links

@ Import — global.asax

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

Parameters

value
The valid namespace to import.

Remarks

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

Syntax Example

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

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