What should you do?
You are dynamically adding controls to an ASP.NET page in the Page_Load event handler.
The page will have text boxes that correspond to the columns in a database table.
Each text box will be preceded by a label that displays the name of the corresponding column.
You need to create the form so that when the user clicks the label, the corresponding text box is selected for input.
What should you do?
What should you do?
You are implementing an ASP.NET AJAX page that contains two div elements. You need to ensure that the content of each div element can be refreshed individually, without requiring a page refresh.
What should you do?
Which class should you use?
You are designing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The application will store data that includes a time and date stamp. The middle tier of the application is implemented by using Windows Communication Foundation (WCF). The middle tier connects to geographically separated database servers. You need to ensure that the application meets the following requirements:
* Data stored contains time and date information local to the database server.
* Data stored contains Universal Coordinated Time (UTC).
Which class should you use?
Which code segment should you place in the entitys partial class?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application.
You use the Entity Framework Designer to create the following Entity Data Model.
You write a method named ValidatePostalCode to validate the postal code for the application.
You need to ensure that the ValidatePostalCode method is called before the PostalCode property set method is completed and before the underlying value has changed.
Which code segment should you place in the entitys partial class?
What should you do?
You are implementing a Web page that allows users to upload files to a Web server.
The page includes a form that has a Submit button.
You want to restrict uploads so that only files smaller than 1 MB can be uploaded.
What should you do?
Which approach should you recommend?
You are designing an ASP.NET 4 Web application that will integrate third-party components.
You need to minimize the security risks of using these components.
Which approach should you recommend?
What should you do?
You are designing a Windows Presentation Foundation (WPF) application for your company by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The business layer of the application is implemented by using Windows Communication Foundation (WCF). You plan to support nonrepudiation and data integrity for WCF messages. You need to design the security strategy for the application. What should you do?
What should you do in the ADO.NET Entity Framework Designer?
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. The model contains an entity type named Product.
You need to ensure that a stored procedure will be invoked when the ObjectContext.SaveChanges method is executed after an attached Product has changed.
What should you do in the ADO.NET Entity Framework Designer?
Which two code segments should you use?
You are implementing an ASP.NET Web page.
You need to add a text box that allows only values between 1 and 10, inclusive, to be submitted.
Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)
What should you do?
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 pa to another. What should you do?