views:

10

answers:

1

Hi All,

I am using MaskedEditExtender so that user can enter date inside textbox with specified mask like "DD/MM/YYYY".

i am facing problem when i am trying to assign value within text box from some string variable while when i am directly typing value within text box it's successfully enter like "28/06/2010"

How can i assign value within masked text box from variable. For mask text box i am using MaskedEditExtender of AJAX.

Please help?

A: 

you can try like...

DateTime dt = DateTime.Now;
txt.Text = dt.ToString("DD/MM/YYYY");
Muhammad Akhtar