可学答题网 > 问答 > MCTS(70-528)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You create a Web Form that displays a


You create a Web Form that displays a GridView. The GridViews data source is a DataSet named dsOrders. The DataSet contains two DataTables named Orders and OrderDetails. You create a relation between the two DataTables using the following code segment. (Line numbers are included for reference only.)01 dtOrders = dsOrders.Tables[“Orders”]; 02 dtOrderDetails = dsOrders.Tables[“OrderDetail”]; 03 colParent = dtOrders.Columns[“OrderID”]; 04 colChild = dtOrderDetails.Columns[“ParentOrderID”]; 05 dsOrders.Relations.Add(“Rell”, colParent, colChild, false); You need to find the cause of the exception being raised in line 05. What should you do? ()

  • A Ensure that the child column and the parent column have the same names.
  • B Ensure that the child table and the parent table have the same names.
  • C Ensure that the child column and the parent column have the same data types.
  • D Ensure that each row in the child table has a corresponding row in the parent table.
  • E Ensure that the tables have an explicit relationship defined by a foreign key constraint in the database.
参考答案
参考解析:
分类:MCTS(70-528)题库
相关推荐

1、You create a Web Form that allows use

You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment.You n...

2、You create a Web Form. The Web Form u

You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database. When the user clicks the...

3、You create a Web Form that contains a

You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web...

4、You create a Web Form that allows user

You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment. You...

5、You create a Web Form. The Web Form al

You create a Web Form. The Web Form allows users to log on to a Web site. You implement the login logic using a Login control named Login1...

6、You create a Web Form. The Web Form al

You create a Web Form. The Web Form allows users to recover their passwords. You add a PasswordRecovery server control by using the following...