Получение ошибки в Csharp:
string sq = "select EmpName,contactnumber,dob,Address from tbl_emp_details where empname = @empname";
SqlCommand cmd = new SqlCommand(sq, con);
cmd.Parameters.AddWithValue("@empname", comboBox1.SelectedText);
SqlDataAdapter adp = new SqlDataAdapter(sq, con);
// com.Parameters.AddWithValue("@empname",Name.SelectedText);
DataTable dt = new DataTable();
adp.Fill(dt);
Name.Text = dt.Rows[0]["Empname"].ToString();