function validateDOB(sender, args)
{
var startDate = new Date(document.getElementById('<%= txtDateOfBirth.ClientID %>').value)
var todaydate = new Date();
if (startDate >= todaydate)
{
args.IsValid = false;
}
else
{
args.IsValid = true;
}
}
{
var startDate = new Date(document.getElementById('<%= txtDateOfBirth.ClientID %>').value)
var todaydate = new Date();
if (startDate >= todaydate)
{
args.IsValid = false;
}
else
{
args.IsValid = true;
}
}
No comments:
Post a Comment