| Author: Mathew Philip 09 Oct 2008 | Member Level: Gold | Rating:  Points: 3 |
Hello Try to use Javascript, you can use OnBlur() method to calculate the age and show the result. It will work when the calendar losts its focus
reagrds Mathew
|
| Author: Gaurav Agrawal 09 Oct 2008 | Member Level: Diamond | Rating:  Points: 3 |
try this
DateTime dt1 = new DateTime(); DateTime dt2 = new DateTime(); TimeSpan ts = dt2.Subtract(dt1); Textbox1.Text = Convert.ToString(ts.Days / 365);
GA
Thanks & Regards,
Gaurav Agrawal Sr.Software Engineer gaur1982@yahoo.com 09829373514
|
| Author: Paulraj 09 Oct 2008 | Member Level: Silver | Rating:  Points: 2 |
hi! on the calender selectionchanged or leave focus event txt = Calender1.value
please try with above code
Good Luck
Paulraj
|