网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

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.


参考答案

更多 “ 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. ” 相关考题
考题 表格视图GridView控件的基类是( )。A.System.Web.UI.WebControlsB.System.Data.OdbcConnectionC.System.Web.UID.System.Web.UI.WebControls.DataGrid

考题 If _______ want to stay in good shape, you should do more exercise. A.weB.peopleC.oneD.you

考题 进入数据库navy1后,将数据库脚本(/data/navy2.sql)导入到数据库中的正确语句是A.include /data/navy2.sqlB.source /data/navy2.sqlC.import /data/navy2.sqlD.@ /data/navy2.sql

考题 如果在视图层组件中设置了data-param属性的值,那么在逻辑层可以利用()获取该参数值?A..paramB..currentTarget.paramC..currentTarget.dataset.paramD..currentTarget.dataset

考题 在js文件中,通过()获取data-* 的属性值A.e.detail.valueB.e.detail.dataC.e.currentTarget.datasetD.e.currentTarget.dataset.*

考题 在js文件中,通过()获取data-* 的属性值。A.e.detail.valueB.e.detail.dataC.e.currentTarget.datasetD.e.currentTarget.dataset.*

考题 在js文件中,通过()获取data-* 的属性值。A.e.currentTarget.dataset.*B.e.detail.valueC.e.currentTarget.datasetD.e.detail.data

考题 form表单应用于web客户端与web服务器间传递数据,下列哪些属性用于form标签。()A.targetB.nameC.actionD.method

考题 DataSet类包含在()命名空间中。A.System.DataB.System.DataSetC.System.Data.SqlClientD.System.Data.Oledb

考题 (算法设计) 说明二分查找的基本思想,并用C/C++语言实现下面的二分查找(折半查找)函数。 bool BSearch(int * source,int n, int data) ; // 在source[n]中查找数据data