日期:2014-05-17 浏览次数:21131 次
SqlCommand one = new SqlCommand("select version from t_version_base where version='" + textBox2.ToString() + "'", conn);
one.CommandType = CommandType.Text;
one.ExecuteNonQuery();
SqlDataReader dr = null;
dr = one.ExecuteReader();
while (dr.Read())
{
if (dr["version"] != null)
{
string str = dr["version"].ToString();
if (str.ToString() == textBox2.ToString())
{
MessageBox.Show("hhhhhhhhhhhhhhhhhhh");
} dr.Close();
}
}