Validators in a user control

Discussion in 'ASP .Net Building Controls' started by Geir Sanne, Jun 15, 2004.

  1. Geir Sanne

    Geir Sanne Guest

    ive made a usercontrol with some textboxes.
    ive added some required field validators to the textoxes.

    i made a page with a button and my user control.

    when i click the button, how can i make the validators check the textboxes ?
     
    Geir Sanne, Jun 15, 2004
    #1
    1. Advertisements

  2. Geir Sanne

    Fritz Guest

    Geir Sanne wrote:

    > ive made a usercontrol with some textboxes.
    > ive added some required field validators to the textoxes.
    >
    > i made a page with a button and my user control.
    >
    > when i click the button, how can i make the validators check the textboxes
    > ?

    Make sure that the client scripting is enabled. Otherwise, the validations
    would be done at the server only.
     
    Fritz, Jun 18, 2004
    #2
    1. Advertisements

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. Tom Rowton
    Replies:
    2
    Views:
    923
    Tom Rowton
    Aug 1, 2003
  2. Ratman
    Replies:
    0
    Views:
    884
    Ratman
    Sep 14, 2004
  3. vatech1993
    Replies:
    4
    Views:
    5,903
    =?Utf-8?B?U8Opcmdpbw==?=
    Dec 11, 2004
  4. Replies:
    0
    Views:
    593
  5. Don
    Replies:
    3
    Views:
    5,702
    Karl Seguin
    Mar 11, 2005
  6. ABC
    Replies:
    1
    Views:
    2,844
    Larry
    Oct 4, 2005
  7. Mad Scientist Jr
    Replies:
    0
    Views:
    892
    Mad Scientist Jr
    Mar 22, 2006
  8. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    806
    Jonathan Wood
    Feb 2, 2010
Loading...