单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table.
You write the following code fragment in a FormView control. (Line numbers are included for reference only.)
01 <tr>
02 <td align="right"><b>Category:</b></td>
03 <td><asp:DropDownList ID="InsertCategoryDropDownList"
04
05 DataSourceID="CategoriesDataSource"
06 DataTextField="CategoryName"
07 DataValueField="CategoryID"
08 RunAt="Server" />
09 </td>
10 </tr>
You need to ensure that the changes made to the CategoryID field can be written to the database.
Which code fragment should you insert at line 04?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table. You write the following code fragment in a FormView control. (Line numbers are included for reference only.) You need to ensure that the changes made to the CategoryID field can be written to the database. Which code fragment should you insert at line 04?()
A.A
B.B
C.C
D.D -
单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a FormView control to access the results of a query. The query contains the following fields: ¡;¤EmployeID ¡;¤FirstNam ¡;¤LastNam The user must be able to view and update the FirstName field. | English | Chinese | Japan | Korean | - 121 - Test Information Co., Ltd. All rights reserved. You need to define the control definition for the FirstName field in the FormView control. Which code fragment should you use?()
A.A
B.B
C.C
D.D -
单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a FormView control to access the results of a query. The query contains the following fields: ¡;¤EmployeeI ¡;¤FirstNam ¡;¤LastNam The user must be able to view and update the FirstName field. You need to define the control definition for the FirstName field in the FormView control. Which code fragment should you use?()
A.A
B.B
C.C
D.D
