I have a text box that contains a date of birth. Next to the text box I have a button that opens a calendar popup to pick the date of birth. This is done in Javascript.
The popup window returns a value to the main window thus:
Link.Attributes.Add("href", [String].Format("JavaScript:window.opener.document.{0}.value = '{1:d}'; window.close();", Request.QueryString("field"), e.Day.Date))
My problem is that when the value in the date of birth text box changes, I want a box below that displays the age to update. The OntextChanged event is not firing though.
The Age box is updated correctly if I type in a date of birth and then tab off the field. Any suggestions for a workaround please?
The popup window returns a value to the main window thus:
Link.Attributes.Add("href", [String].Format("JavaScript:window.opener.document.{0}.value = '{1:d}'; window.close();", Request.QueryString("field"), e.Day.Date))
My problem is that when the value in the date of birth text box changes, I want a box below that displays the age to update. The OntextChanged event is not firing though.
The Age box is updated correctly if I type in a date of birth and then tab off the field. Any suggestions for a workaround please?