PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that the JavaScript code can locate the HTML elements created for each row in these GridVie

You are implementing an ASP.NET application that uses data-bound GridView controls in multiple
pages. You add JavaScript code to periodically update specific types of data items in these GridView
controls. You need to ensure that the JavaScript code can locate the HTML elements created for
each row in these GridView controls, without needing to be changed if the controls are moved from
one page to another. What should you do?

You need to change the service to allow up to the maximum number of executions of the methods of MessageDataba

A Windows Communication Foundation (WCF) solution exposes the following service over
a TCP binding. (Line numbers are included for reference only.) 01 [ServiceContract] 02
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)] 03 public class
DataAccessService 04 { 05 [OperationContract] 06 public void PutMessage(string message)
07 { 08 MessageDatabase.PutMessage(message); 09 } 10 [OperationContract] 11 public
string[] SearchMessages(string search) 12 { 13 return
MessageDatabase.SearchMessages(search); 14 } 15 } MessageDatabase supports a
limited number of concurrent executions of its methods. You need to change the service to
allow up to the maximum number of executions of the methods of MessageDatabase. This
should be implemented without preventing customers from connecting to the service. What
should you do?

You need to ensure that the application checks the database every 10 seconds

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?