Hello all,
I have overloading method problem with my miniproject. The code is below :
patients.UpdatePatientsDetail(patientsidTextBox.Text, patientsnameLabel1.Text);
Error is : no overload for UpdatePatientsDetail takes '2' arguments
Code for this method is :
public void UpdatePatientsDetail(string strPatientsID, string strPatientsName, string strPatientsAddress, string strPatientsTelephonenumber, string strPatientsDateofBirth, string strPatientsNric, string strPatientsEmailAdress, string strPatientsApponitmentTime)
{
string SQL;
SQL = "UPDATE Patients SET PatientsName = '" + strPatientsName +
"', PatientsAddress = '" + strPatientsAddress +
"', PatientsTelephonenumber = '" + strPatientsTelephonenumber +
"', PatientsDateofBirth = '" + strPatientsDateofBirth +
"', PatientsNric = '" + strPatientsNric +
"', PatientsEmailAdress = '" + strPatientsEmailAdress +
"', PatientsAppointmentTime = '" + strPatientsApponitmentTime +
"' where PatientsID = " + strPatientsID + "";
ExecuteDataCommand(SQL);
}
I can't fix the error. Any help will be appreciated. Thank you.