The Products table has a column named ProductName and a primary key column namedProductID. When a user selects an item in the DataList, you want to retrieve the value of theProductID column associated with it.
A. In the DataList control set PrimaryKeyField=” ProductID”
B. In the DataList control set DataKeyField=” ProductID”
C. In the DataList control set KeyField=” ProductID”
D. In the DataList control set id=” ProductID”
Answer:B
The Products table has a column named ProductName and a primary key column namedProductID. When a user selects an item in the DataList, you want to retrieve the value of theProductID column associated with it.
A. In the DataList control set PrimaryKeyField=” ProductID” B. In the DataList control set DataKeyField=” ProductID” C. In the DataList control set KeyField=” ProductID” D. In the DataList control set id=” ProductID”