I have a table.From that table i am selecting rows Based on the key field of the table .This time I am selecting rows from database based on key 'search'.So i got following rows in my datatable .
Id | key | Value | assignedvalue
1 search count 10
4 search name John
6 search channels 20
I have 3 variables declared
int count,channels;
string name;
I want to assign corresponding values to the above variables from that table.
ie, i must get values from data table like shown below
count=10,
channels= 20
name=John
How can i do this?