Taken from CERT-70-315
Related Exam: Microsoft 70-315 Developing and Implementing Web Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET
You have used Visual Studio.NET to create an assembly that will be used in every page of your Web application. The assembly resides in the C:\Program Files\Company Name\AssemblyName folder.
How should you link the assembly to your Web pages?
a. Include the <%@ Assembly Name="AssemblyName" %> directive on your application's startup page.
b. Include the <%@ Assembly Name="AssemblyName" %> directive on all pages of your application.
c. Include the <%@ Assembly Src="AssemblyName" %> directive on your application's startup page.
d. Include the <%@ Assembly Src="AssemblyName" %> directive on all pages of your application.
e. Reinstall the assembly to the \Bin directory that is located in your Web application's root directory.
--------------------------------------------------------------------------------
Answer to yesterday's question:
Taken from CERT-70-305
Related Exam: Microsoft 70-305 Developing and Implementing Web Applications with Microsoft Visual Basic .NET and Microsoft Visual Studio .NET
Choice e is correct. You should reinstall the assembly to the \Bin directory located in your Web application's root directory. Assemblies that are installed to this location are linked to the application's pages automatically. The @ Assembly directive links assemblies to Web pages and allows objects in the assembly to be referenced by code in the Web page. However, if the assembly resides in the application's \Bin directory, Web pages in the application do not need the @ Assembly directive.
References:
MSDN, Search, "Resources in ASP.NET Applications," ".NET Framework Developer's Guide."
MSDN, Contents, ".NET Development," ".NET Framework SDK," ".NET Framework," "Reference," "ASP.NET Syntax," "Web Forms Syntax," "Directive Syntax," "@ Assembly."
Friday, May 06, 2005
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment