views:

28

answers:

1

Hi,

Is it possible with the standard .Net field validators to change the style on the textfield, in which the error occures?

If I e.g. have a field phonenumber which needs to be filled out, it should create a red border around the textfield on submit, if the field is not filled.

Hopefully this can be done with the standard controls so I don't need to recode it using e.g. jQuery Validation plugin etc.

-Dofs

A: 

You can do it by using the ajax toolkit, as explained by Lance Zhang on this page.

klausbyskov
I would like to do it with the regular asp.net controls and not be dependent on 3rd party controls.
Dofs
How is Microsoft a third party? It's an open source library but it's still made by Microsoft.
klausbyskov