| |||||
@ ImportASP.NET Syntax ASP.NET Page Syntax Page Directives Explicitly imports a namespace into a page, making all classes and interfaces of the imported namespace available to the page. The imported namespace can be part of the .NET Framework class library or a user-defined namespace. <%@ Import namespace = "value" %> Attributes
RemarksThe @ Import directive cannot have more than one namespace attribute. To import multiple namespaces, use multiple @ Import directives. The following namespaces are automatically imported into all pages:
Syntax ExampleThe following code imports the .NET Framework base class namespace <%@ Import Namespace = "System.Net" %> <%@ Import Namespace = "Grocery" %> See Also |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme