这里有什么错误?我收到了一个错误。但是lblStage获得了舞台价值。但错误来了。
try
{
SqlCommand cmd = new SqlCommand("Select distinct (stage) from tblStatus where EstimateID=@EstimateID", con);
cmd.Parameters.AddWithValue("EstimateID", listEstimateID.Text);
lblStage.Text = cmd.ExecuteScalar().ToString();
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}