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.

Question: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.

1.In the DataList control set PrimaryKeyField=” ProductID”

2. In the DataList control set DataKeyField=” ProductID”

3. In the DataList control set KeyField=” ProductID”

4.In the DataList control set id=” ProductID”


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!