You are creating a Web Form. The Web Form allows users to select a category from a DropDownList control. Valid categories are stored in a database table. A SqlDataSource control retrieves the category data. You set the SelectQuery property of the SqlDataSource control by using the following code segment.
SELECT [CategoryID], [CategoryName] FROM [Categories]
You need to bind the DropDownList control to the data source control so that the category name is displayed to the user. The ID of the category must be stored as the user’s selected item.
Which three actions should you perform?
(Each correct answer presents part of the solution. Choose three.)
A.
Set the DataSourceID property of the DropDownList control to the identifier of the SqlDataSource control.
B.
Set the DataMember property of the DropDownList control to the identifier of the SqlDataSource control.
C.
Set the DataValueField property of the DropDownList control to CategoryID.
D.
Set the DataTextField property of the DropDownList control to CategoryName.
E.
Set the DataValueField property of the DropDownList control to CategoryName.
F.
Set the DataTextField property of the DropDownList control to CategoryID.