PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which control markup should you use?

You are implementing an ASP.NET Web site that will be accessed by an international audience. The
site contains global and local resources for display elements that must be translated into the
language that is selected by the user. You need to ensure that the Label control named lblCompany
displays text in the users selected language from the global resource file. Which control markup
should you use?

You need to ensure that all data that is submitted passes validation before the data is saved in a database

You are developing an ASP.NET Web page that contains input controls, validation controls, and a
button named btnSubmit. The page has the following code-behind. (Line numbers are included for
reference only.)
01 Public Class _Default
02 Inherits System.Web.UI.Page
03
04 Protected Sub SaveToDatabase()
05
06 End Sub
07
08 Protected Sub btnSubmit_Click(ByVal sender As Object,
09 ByVal e As EventArgs) Handles btnSubmit.Click
10
11 End Sub
12
13 End Class
You need to ensure that all data that is submitted passes validation before the data is saved in a
database. What should you do?

You need to ensure that OperationOne and OperationTwo execute under the same transaction context when they are

A service implements the following contract. (Line numbers are included for reference only.)
The service is implemented as follows. ContosoService uses NetMsmqBinding to listen for
messages. The queue was set up to use transactions for adding and removing messages.
You need to ensure that OperationOne and OperationTwo execute under the same
transaction context when they are invoked in the same session. What should you do?