Hi

I am trying to use the Masked Edit Extender & Validator from the Ajax
Control Toolkit ib a web page developed using ASP.NET and C#. It works
very well on input fields, but later on I want to re-display the data
in an Edit form. I have left the Masked Edit Extender and Validator on
the field in case the user tries to edit the date, but it doesn't want
to display the existing data.
Here is my code:

DateTime dtDateOfIncident =
Convert.ToDateTime(reader["dateTimeOfIncident"]);
this.txtDateOfIncident.Text = dtDateOfIncident.ToString();

The field txtDateOfIncident has the Masked Edit Extender and Validator
on it. It simply displays a blank field with the input mask showing.

Does anyone know if there is a way of doing this, or will I have to
have 2 sepatate fields - one for displaying the existing data and
another for the optional entry of a new date?

Stapes

Reply via email to