RequiredFieldValidator to validate a disabled textBox

Posted by Andrea on Stack Overflow See other posts from Stack Overflow or by Andrea
Published on 2010-05-05T09:32:39Z Indexed on 2010/05/05 10:18 UTC
Read the original article Hit count: 177

Filed under:
|
|

Hi guys,

I've got a TextBox in which user can input a their desired username. Underneath I've got a checkbox that once clicked it copies the user's email adress into the textfield and then disable it to prevent further changes. This feature is implemented by using jQuery.

The problem is that I've got a RequiredFieldValidator on that TextBox and it looks like it can't validate a disabled textfield, even if the value is set.

How can I solve this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET