The code below is to retrieve a category for a particular id. it will only return just one value say "Sport" to the dataTable. How to i convert the dataTable value to a string. I want to make use of this value for other things in the application
var conn = new SqlConnection(ConfigurationManager.ConnectionStrings["MyConnectionString"].ToString());
conn.Open();
var da = new SqlDataAdapter("Select Product_Category from Product
where
Product_Id =" + fo, conn);
da.Fill(mydata);
conn.Close();