In addition use the following code segment in Try

In addition use the following code segment in try

This preview shows page 134 - 136 out of 159 pages.

In addition, use the following code segment in AcceptValidateValidATMUser: Try Me.Validate() Catch ex As Exception Throw new ValidateValidATMUserException("Exception in _ AcceptValidateValidATMUser", ex) End Try Answer:B Explanation: The unhandled exception automatically will be thrown to the client application. This solution meets the requirement that the least amount of code should be used. We must throw the exception as it is. Question: 202. (C)You have been asked to build a Billing application for ESPowerHouse to bill its customers. You application must facilitate auditing. To do this, you create a form in your application that will allow users to modify data in the ElectricityBill table. You have created a DataSet object named dsElectricityBill. You perform these operations: • The data source of dsElectricityBill is ElectricityBill.
Background image
Exam Name: Developing Windows-based Applications with Microsoft Visual Basic .NET Exam Type: Microsoft Exam Code: 70-306 Doc Type: Q&A with Explanations Total Questions: 255 Page 135 of 159 • Your application will have two grids, gridEdit and gridOriginal. • The data source of gridEdit will be dsElectricityBill. • Users of your application will make changes to the data in dsElectricityBill through gridEdit. • When rows are modified in gridEdit, gridOriginal will display the original data of the modified rows. gridOriginal will display only rows that have been modified. • The data source of gridOriginal will be a DataView object named dvOriginal. Which of the following actions should you perform to provide this functionality in your application? (Each choice presents a part of the solution.) (Select 2 choices.) A. Create dvOriginal with a clone of the dsElectricityBill data set. B. Set the AllowPaging property of gridEdit to true. C. Create dvOriginal with the dsElectricityBill data set. D. Set the ViewState property of gridOriginal to DataViewRowState.ModifiedOriginal. E. Set the RowStateFilter property of dvOriginal to DataViewRowState.ModifiedOriginal. Answer:C, EExplanation: In this scenario, you want to enable one grid, gridOriginal, to automatically detect data changes that occur in the other grid, gridEdit. To accomplish this, gridOriginal should use a DataView object that is created with the same DataSet used by gridEdit. Because the RowStateFilter property filters the rows that are available in a DataView object, you should set the RowStateFilter to DataViewRowState.ModifiedOriginal. Performing this action ensures that only the rows that have been modified will be displayed. The original data will be displayed in those rows. If the RowStateFilter property were set to DataViewRowState.ModifiedCurrent, then the current data of the modified rows would be displayed. The Clone method of a DataSet object creates a duplicate of the data set, but the clone contains no data. The ViewState property of the DataGrid Web control is used to maintain the grid's data between page requests and would not be used in the
Background image
Image of page 136

You've reached the end of your free preview.

Want to read all 159 pages?

  • Spring '16
  • .NET Framework, Microsoft Visual Studio

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture