Online Access Free 070-523 Exam Questions
Exam Code: | 070-523 |
Exam Name: | UPG:Transition MCPD.NET Frmwrk 3.5 Web Dev to 4 Web Dev |
Certification Provider: | Microsoft |
Free Question Number: | 118 |
Posted: | Sep 05, 2025 |
You need to design a deployment solution for the rewritten Web application. Which approach should you recommend?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server 2008 database. You create classes by using LINQ to SQL based on the records shown in the exhibit. (Click the Exhibit button.) You need to create a LINQ query to retrieve a list of objects that contains the OrderID and CustomerID properties. You need to retrieve the total price amount of each Order record. What are two possible ways to achieve this goal (Each correct answer presents a complete solution. Choose two.)
You are implementing an ASP.NET page in an e-commerce application. Code in a btnAddToCart_Click
event handler adds a product to the shopping cart.
The page should check the status of the shopping cart and always show a cart icon when one or more
items are in the shopping cart. The page should hide the icon when the shopping cart has no items. You
need to add an event handler to implement this requirement.
Which event handler should you add?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You use
the ADO.NET Entity Framework to model entities. You write the following code segment. (Line numbers
are included for reference only.)
01AdventureWorksEntities context = New AdventureWorksEntities (http://localhost:1234/AdventureWorks.
svc );
02
03var q = from c in context.Customers
04where c.City == "London"
05orderby c.CompanyName
06select c;
You need to ensure that the application meets the following requirements: "Compares the current values of
unmodified properties with values returned from the data source. "Marks the property as modified when the
properties are not the same. Which code segment should you insert at line 02?
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 Web server.
The application works correctly in the development environment. However, when you connect to the service on the production server, attempting to update or delete an entity results in an error. You need to ensure that you can update and delete entities on the production server. What should you do?