新手if问题 在线即使结帐
SqlDataReader sdr = cmd_Supply.ExecuteReader(CommandBehavior.CloseConnection);
sdr.Read();
Supply_type.SelectedValue = sdr[ "Supply_type "].ToString();
string aaa = sdr[ "Supply_medicare "].ToString();
if (aaa == "是 ")
{
RadioButton6.Checked = true;
RadioButton7.Checked = false;
}
这个语句老不走if
------解决方案--------------------aaa.Trim()
------解决方案--------------------sdr[ "Supply_medicare "].ToString().Trim();