Compare validator problem in user control

Discussion in 'ASP .Net' started by David Hearn, Jun 13, 2006.

  1. David Hearn

    David Hearn Guest

    I have a user control that I created that I use in one page right now. It
    has a textbox in it that is used to enter a date. I am using a compare
    validator to validate the date format which works fine if you enter a date
    and then use the tab key to leave the control. The problem is that it should
    also be firing if the date is not correctly formatted when the user clicks
    on a button that is in the parent page. The button has the CausesValidation
    property set as true but I cannot get the validator to fire. I know it has
    something to do with the fact that it is in a user control but I can't
    figure out what? Is there a way to force the thing to validate?

    Thanks in advance!
    David Hearn, Jun 13, 2006
    #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. Robbo
    Replies:
    0
    Views:
    323
    Robbo
    Oct 30, 2003
  2. =?Utf-8?B?c3VwZXJtYW4=?=

    Validator for server control inside a user control.

    =?Utf-8?B?c3VwZXJtYW4=?=, Sep 4, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    479
    =?Utf-8?B?c3VwZXJtYW4=?=
    Sep 4, 2006
  3. superman

    Validator for server control inside user control

    superman, Sep 5, 2006, in forum: ASP .Net Building Controls
    Replies:
    3
    Views:
    169
    Brennan Stehling
    Sep 7, 2006
  4. Shailesh Katti

    compare validator to validate date in user control

    Shailesh Katti, Jul 27, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    698
    Teemu Keiski
    Jul 28, 2003
  5. superman

    Validator for server control inside user control

    superman, Sep 5, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    132
    superman
    Sep 5, 2006
Loading...

Share This Page