Question about custom validator on UserControl.

Discussion in 'ASP .Net' started by Ken Varn, Nov 1, 2004.

  1. Ken Varn

    Ken Varn Guest

    I am trying to place CustomValidator in a User Control. I am using client
    side script for the CustomValidator. The problem that I am having is that
    when the script is called, I need to access multiple form elements by ID.
    The ID's have been changed by ASP.NET when the form is loaded to reflect
    uniqueness. How can I determine what ID ASP.NET will give the form element
    so that I can access it in my script correctly?

    --
    -----------------------------------
    Ken Varn
    Senior Software Engineer
    Diebold Inc.

    EmailID = varnk
    Domain = Diebold.com
    -----------------------------------
     
    Ken Varn, Nov 1, 2004
    #1
    1. Advertising

  2. Ken Varn

    Peter Blum Guest

    The ClientID property of each webcontrol is the correct ID.

    --- Peter Blum
    www.PeterBlum.com
    Email:
    Creator of "Professional Validation And More" at
    http://www.peterblum.com/vam/home.aspx

    "Ken Varn" <nospam> wrote in message
    news:unXn%...
    >I am trying to place CustomValidator in a User Control. I am using client
    > side script for the CustomValidator. The problem that I am having is that
    > when the script is called, I need to access multiple form elements by ID.
    > The ID's have been changed by ASP.NET when the form is loaded to reflect
    > uniqueness. How can I determine what ID ASP.NET will give the form
    > element
    > so that I can access it in my script correctly?
    >
    > --
    > -----------------------------------
    > Ken Varn
    > Senior Software Engineer
    > Diebold Inc.
    >
    > EmailID = varnk
    > Domain = Diebold.com
    > -----------------------------------
    >
    >
     
    Peter Blum, Nov 2, 2004
    #2
    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. huobazi
    Replies:
    1
    Views:
    716
    David Waz...
    Jul 3, 2003
  2. Rajesh Tiwari

    Can we use a usercontrol inside a usercontrol

    Rajesh Tiwari, Aug 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    433
    Rajesh Tiwari
    Aug 12, 2003
  3. LaptopHeaven
    Replies:
    0
    Views:
    414
    LaptopHeaven
    Oct 5, 2006
  4. Replies:
    4
    Views:
    915
    Richter~9.6
    Feb 13, 2007
  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:
    220
    Scott Yenor
    Jan 27, 2004
Loading...

Share This Page