| |||||
@ AssemblyASP.NET Syntax ASP.NET Page Syntax Page Directives Links an assembly to the current page during compilation, making all of the assembly's classes and interfaces available for use on the page. <%@ Assembly Name = "assemblyname" %> <%@ Assembly src="pathname" %> Attributes
RemarksThe compiler references the assembly at compile time, allowing early binding. Once compilation of the requested page is complete, the assembly is loaded into the application domain, allowing late binding. Assemblies that reside in your Web application's \bin directory are automatically linked to pages within that application. Such assemblies do not require the @ Assembly directive. You can disable this functionality by removing the following line from the <assembly> section of your application's Web.config file: <add assembly = "*" />
As an alternative to using the <%@ Assembly %> directive, you can use the Web.config file to link assemblies across an entire application. For more information about the Web.config file and configuring your application, see ASP.NET Configuration. Syntax ExampleThe following code fragment uses two <%@ Assembly Name = "myAssembly" %> <%@ Assembly src = "mySource.vb" %> 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