String sql = "select PatientId, FirstName, LastName, Sex, Age, CNIC, Phone, GaurdianName from Patients WHERE 1=1"; if (PatientId.Text != "") { sql += " AND PatientId LIKE '%" + PatientId.Text + "%'"; }
SELECT PatientId, FirstName, LastName, Sex, Age, CNIC, Phone, GaurdianName FROM Patients WHERE PatientId LIKE =@PatientId
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)