asp.net RequiredFieldValidator with custom control.

Posted by Evgeny on Stack Overflow See other posts from Stack Overflow or by Evgeny
Published on 2010-06-05T12:42:28Z Indexed on 2010/06/05 12:52 UTC
Read the original article Hit count: 158

Filed under:
|

I have custom control with asp textbox inside.

And i need to Validate by RequiredFieldValidator my custom control on CLIENT side.

I added attribute to custom control class:

[ValidationProperty("Text")]
    public class WatermarkTextBox : System.Web.UI.UserControl
{
}

It looks like working but it always make submit to server. How can i check it only on client side?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET