سلام
من این رو دارم:
وقتی می خوام اجراش کنم این ارور رو میده:کد:SqlConnection con = new SqlConnection("Connection String");
SqlCommand com = new SqlCommand("SELECT * FROM Table1 WHERE name = '" + name + "'", con);
SqlDataReader dr = null;
con.Open();
dr = com.ExecuteReader();
if (dr.Read())
{
textBox1.Text = (string)dr["name"];
}
dr.Close();
con.Close();
توی اون جدولم هم 3-4 تا فیلد دارم از انواع مختلفنقل قول:
The data types text and varchar are incompatible in the equal to operator.
ممنون