Hello Friends,
I have Two TextBOx; TextBox1 and TextBox13.
TextBox1 is for Birth Date and TextBox14 for Retired Date.
My Problem is I want To display Retirement Date in TextBox14 Automaticlly by Adding 58 yeras in BirthDate At a time when user fill the Birth Date Textbox.That works fine with Code like that.
on TextBox13_Textchanged event
DateTime dt = DateTime.Parse(TextBox13.Text);
TextBox14.Text = dt.AddYears(58).ToString(
"MM/dd/yyyy");
But My problem is that When user Enter Wrong Date in BirthDate textbox then it will give error on page
rather fire Validator. I already applied validator for birthdate to validate proper datetime format.
How can I solve this matter please tel me...
Please help me.