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. Advertisements

  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. Advertisements

  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. 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. dmedina

    Validators and javascript

    dmedina, Jun 30, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    487
    William F. Robertson, Jr.
    Jun 30, 2003
  2. Christian H
    Replies:
    2
    Views:
    757
    Christian H
    Jul 23, 2003
  3. Ratman
    Replies:
    0
    Views:
    897
    Ratman
    Sep 14, 2004
  4. Replies:
    0
    Views:
    1,119
  5. Replies:
    0
    Views:
    3,179
  6. Replies:
    1
    Views:
    7,252
    Karl Seguin
    Aug 10, 2005
  7. uncensored
    Replies:
    0
    Views:
    1,036
    uncensored
    Oct 25, 2006
  8. Microsoft

    Repeater inside a Repeater

    Microsoft, Aug 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    392
    Microsoft
    Aug 21, 2006
Loading...