How can I change this code from MySqlDataScalar to DataReader.
Because I need multiple ID values.
I tried to relate dropdownlist to gridview which contains Byte[] img.
But there is only one image.
Here is my code:
private string getImage_ID1()
{
MySqlConnection con = new MySqlConnection(constr);
con.Open();
MySqlCommand cmd = new MySqlCommand("Select bosh_rasm_ID,Tugal_rasm_ID from uqishkunlari where uquvchilar_ID='" + getStudent_ID1() + "'");
cmd.Connection = con;
string reader =(cmd.ExecuteScalar() ?? String.Empty).ToString();
return reader;
}
Loading

Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 15, 2015, 11:09 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 16, 2015, 2:57 AM EDT
Sumit JoshiRank #1,252 · 1.4K reputationPosted Aug 16, 2015, 3:31 AM EDT
Sujeet SumanRank #790 · 2.9K reputationPosted Aug 16, 2015, 6:03 AM EDT