You are developing an ASPNET Web application You create a master page The

You are developing an aspnet web application you

This preview shows page 4 - 6 out of 14 pages.

Question: 6 You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using the ASP.NET page designer. You need to add a control to the master page to define the region. Which control should you add? A. Content B. ContentPlaceHolder C. PlaceHolder D. Substitution Answer: B Explanation: Question: 7 You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the Page.IsValid property.Which page event should you add an event handler to? Question: 8 You are developing an ASP.NET Web application.Application data is stored in a Microsoft SQL Server 2008 database. You configure a connection string named cnnContoso. The application must cache the data that is returned from the database by using this connection string. You need to ensure that the application checks the database every 10 seconds. What should you do? A. Add the following configuration to the <system.web> section of the web.config file.
Image of page 4
Certification Preparation Material Page | 5 <outputCacheProfiles> <add name="cnnContoso" duration="10" /> </outputCacheProfiles> </outputCacheSettings> </caching> B. Add the following configuration to the <system.web> section of the web.config file. <caching> <sqlCacheDependency enabled="true" pollTime="10000"> <databases> <add name="ContosoDatabase" connectionStringName="cnnContoso" /> </databases> </sqlCacheDependency> </caching> C. Add the following @ Page directive to pages that query the database. <%@ OutputCache Duration="10" VaryByParam="cnnContoso" %> D. Add the following @ Page directive to pages that query the database. <%@ OutputCache Duration="10000" VaryByParam="cnnContoso" %> Answer: B Question: 9 You are troubleshooting an ASP.NET Web application. System administrators have recently expanded your web farm from one to two servers. Users are periodically reporting an error message about invalid view state. You need to fix the problem. What should you do?
Image of page 5
Image of page 6

You've reached the end of your free preview.

Want to read all 14 pages?

  • Winter '16
  • Niall Winters
  • Object-Oriented Programming, web site, class library, http://www.certschief.comCertification Preparation Material, master page

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture