Using validators on custom controls

Discussion in 'ASP .Net Web Controls' started by shodson@gmail.com, Jun 24, 2005.

  1. Guest

    I know how to use validators on the <asp:___> server controls.

    Now I have created my own server controls. How can I use the standard
    ASP.NET validator controls to validate my custom control? For example,
    if I have a RequiredFieldValidator, and I want to set it's
    ControlToValidate property to one of my custom controls, how can they
    be tied together? How does the RequiredFieldValidator know how to
    validate my custom control?
     
    , Jun 24, 2005
    #1
    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. Dot net work
    Replies:
    4
    Views:
    676
    Dot net work
    Jun 16, 2004
  2. Ratman
    Replies:
    0
    Views:
    898
    Ratman
    Sep 14, 2004
  3. Charith Jayasundara via .NET 247

    How to use custom validators for dynamically genrated textboxes

    Charith Jayasundara via .NET 247, Mar 23, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    493
    Brock Allen
    Mar 23, 2005
  4. =?Utf-8?B?TFU=?=
    Replies:
    3
    Views:
    740
    Lucas Tam
    Mar 30, 2005
  5. =?Utf-8?B?UGF1bA==?=

    anyone good with custom validators?

    =?Utf-8?B?UGF1bA==?=, May 16, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    535
    =?Utf-8?B?UGF1bA==?=
    May 16, 2005
  6. =?Utf-8?B?TWlndWVsIElzaWRvcm8=?=

    Creating Validators in Custom ASP.NET Server Controls

    =?Utf-8?B?TWlndWVsIElzaWRvcm8=?=, Jul 27, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    559
    Teemu Keiski
    Jul 27, 2006
  7. rodchar
    Replies:
    0
    Views:
    608
    rodchar
    Nov 26, 2007
  8. Shan McArthur
    Replies:
    2
    Views:
    296
    Michael Baltic
    Jun 30, 2005
Loading...