Repeater and Validators

Discussion in 'ASP .Net Web Controls' started by Keybee, Jan 26, 2007.

  1. Keybee

    Keybee Guest

    Hi all

    I was wondering if someone could clarify how to use a
    RegularExpressionValidator on fields in a Repeater..

    I have a button for each row and i only want the validator summary to check
    the fields on the same row as the button i click. Is this possible?? Right
    now it doesnt matter which button i click, the summary checks all fields in
    the repeater :(

    Im really trying to describe the problem as clearly as possible. I hope
    someone understands what im asking :)

    THANKS!

    --
    "Is poopoo one word or two?"-Homer Simpson
    Keybee, Jan 26, 2007
    #1
    1. Advertising

  2. Keybee

    Scott M. Guest

    > I was wondering if someone could clarify how to use a
    > RegularExpressionValidator on fields in a Repeater..


    You don't. Repeaters are for read-only views of data. Since there is no
    data input, there is no need for a validator control. Use DataLists or
    DataGrids instead.
    Scott M., Jan 26, 2007
    #2
    1. Advertising

  3. Keybee

    Keybee Guest

    I was afraid you'd say that. DataLists here I come.

    Thanks Scott M!

    --
    "Is poopoo one word or two?"-Homer Simpson


    "Scott M." wrote:

    > > I was wondering if someone could clarify how to use a
    > > RegularExpressionValidator on fields in a Repeater..

    >
    > You don't. Repeaters are for read-only views of data. Since there is no
    > data input, there is no need for a validator control. Use DataLists or
    > DataGrids instead.
    >
    >
    >
    >
    Keybee, Jan 26, 2007
    #3
    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. Ratman
    Replies:
    0
    Views:
    643
    Ratman
    Sep 14, 2004
  2. Replies:
    0
    Views:
    842
  3. Replies:
    0
    Views:
    2,864
  4. Replies:
    1
    Views:
    7,008
    Karl Seguin
    Aug 10, 2005
  5. uncensored
    Replies:
    0
    Views:
    794
    uncensored
    Oct 25, 2006
Loading...

Share This Page