Which binding expression should you use?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a ListBox control named lbxItems that is databound to a collection of objects. Each object has a DisplayValue property. You add a Button control to the application. You need to ensure that the Content property of the Button control is databound to the DisplayValue property of the selected item of lbxItems.
Which binding expression should you use?
Which MergeOption enumeration value should you use to retrieve the entity?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application.
You use the ADO.NET Entity Framework Designer to model entities.
You need to retrieve an entity, and you must ensure that the entity is loaded in a detached state.
Which MergeOption enumeration value should you use to retrieve the entity?
What should you do?
You are implementing an ASP.NET AJAX page.
You add two UpdatePanel controls named pnlA and pnlB. pnlA contains an UpdatePanel control named pnlAInner in its content template.
You have the following requirements.
* Update panels pnlA and pnlB must refresh their content only when controls that they contain cause a postback.
* Update panel pnlAInner must refresh its content when controls in either pnlA or pnlB or pnlAInner cause a postback.
You need to configure the panels to meet the requirements.
What should you do?
Which approach should you recommend?
You are designing the user interface for an ASP.NET Web application. The Web application allows several departments to personalize the style of their sections of the Web application.
All departmental section styles derive from the core styles of the Web application and can only append to the Web application’s core styles. The departmental master pages inherit from the Web application’s master page.
You need to ensure that core CSS styles appear in all pages of the Web application.
Which approach should you recommend?
Which header and request type should you use in the application?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Communication Foundation (WCF) Data Services service. You discover that when an application submits a PUT or DELETE request to the Data Services service, it receives an error. You need to ensure that the application can access the service. Which header and request type should you use in the application?
Which two actions should you perform?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an ASP.NET Web application that uses the Entity Framework.
The build configuration is set to Release. The application must be published by using Microsoft Visual Studio 2010, with the following requirements:
* The database schema must be created on the destination database server.
* The Entity Framework connection string must be updated so that it refers to the destination database server.
You need to configure the application to meet the requirements. Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)
Which two actions should you perform?
You are implementing an ASP.NET AJAX page.
You add the following control to the page.
<asp:UpdatePanel ID=”pnl1″ runat=”server” UpdateMode=”Conditional”>
<ContentTemplate> … </ContentTemplate>
</asp:UpdatePanel>
You need update the contents of the UpdatePanel without causing a full reload of the page.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which code segment should you use?
You are implementing an ASP.NET page. Client-side script requires data. Your application includes a class named Person with a Name property of type string. The code-behind file of the page includes the following code segment.
public string JsonValue;
List<Person> people = GetPeopleList();
JavaScriptSerializer json = new JavaScriptSerializer();
You need to use the JavaScriptSerializer class to serialize only the Name property of each item in the people list.
Which code segment should you use?
Which two actions should you perform?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Communication Foundation (WCF) Data Services service. The service connects to a Microsoft SQL Server 2008 database. The service is hosted by an Internet Information Services (IIS) 6.0 server. You need to ensure that applications authenticate against user information stored in the database before the application is allowed to use the service. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application.
You use the ADO.NET Entity Framework Designer to model entities.
You need to create a Plain Old CLR Object (POCO) class that can be used with the ObjectContext.CreateObject method to create a proxy.
What should you do?