if (dtdates.Rows[0]["dob"].ToString() < "30/11/2007") //if dob is before 30/11/2007 than disabling { Txt1.Enabled = false; Txt2 = false; Txt2 = false; }
if (Convert.ToDate(dtdates.Rows[0]["dob"]) < Convert.ToDate("30/11/2007")) //if dob is before 30/11/2007 than disabling { Txt1.Enabled = false; Txt2 = false; Txt2 = false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)