Custom Validator Control

Discussion in 'ASP .Net Web Controls' started by Jim, May 7, 2005.

  1. Jim

    Jim Guest

    Hello. Would anyone know why a custom validator never returns invalid?

    As you can see in this Sub, it should always return invalid but it always
    returns that it's valid.

    Private Sub val_txtArrivalTime_ServerValidate(ByVal source As System.Object,
    ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles
    val_txtArrivalTime.ServerValidate

    args.IsValid = False

    End Sub

    Does anyone know what I may be doing wrong?

    Thanks in advance,
    Jim
     
    Jim, May 7, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pham Nguyen

    Custom Textbox and Validator Control

    Pham Nguyen, Jan 10, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    10,694
    Pham Nguyen
    Jan 11, 2004
  2. Replies:
    1
    Views:
    605
    Elmer CarĂ­as
    Dec 17, 2004
  3. Replies:
    4
    Views:
    918
    Richter~9.6
    Feb 13, 2007
  4. Matt Sokol
    Replies:
    2
    Views:
    409
    Theo Tillotson
    Aug 7, 2003
  5. Scott Yenor

    How to get custom control to work with custom validator

    Scott Yenor, Jan 27, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    221
    Scott Yenor
    Jan 27, 2004
Loading...

Share This Page