You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1;
What's wrong with this bracket
private void BindGrid()
{
MySqlConnection con = new MySqlConnection(constr);
MySqlCommand cmd = new MySqlCommand("SELECT Rasm FROM rasmlar where Rasm_ID IN (" + String.Join(",", getRasm_ID1()) + ")", con);
MySqlDataAdapter da = new MySqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
gvImages.DataSource = dt;
gvImages.DataBind();
}
Bracket
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Manas MohapatraRank #182 · 13.2K reputationPosted Sep 12, 2015, 11:21 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Sep 13, 2015, 4:56 AM EDT