Validation in repeater

Discussion in 'ASP .Net Web Controls' started by Francis, Mar 29, 2006.

  1. Francis

    Francis Guest

    Hi,
    I have a repeater control which has a button in each row, I need the
    button to submit data, when this happens I have a requiredfieldvalidator
    on each row which will check that the row has been filled in, however,
    when a button is clicked, all rows validate rather than just the row the
    button has been clicked for.

    Could someone give me a pointer how to sort it so only the row in which
    the button was checked is validated? I have tried disabling the
    validators then enabling them later.

    Thanks in advance
    Francis
    Francis, Mar 29, 2006
    #1
    1. Advertising

  2. Francis

    Guest

    Hi,

    Use validation groups. It allows each row (validator, textboxes,
    buttons, etc) to be associated with a seperate validation group so that
    clicking a button on one row would validate only that particular
    validation group.

    http://msdn2.microsoft.com/en-US/library/ms227424.aspx

    Regards.
    , Mar 29, 2006
    #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. Replies:
    0
    Views:
    851
  2. Replies:
    0
    Views:
    2,877
  3. Replies:
    1
    Views:
    7,018
    Karl Seguin
    Aug 10, 2005
  4. uncensored
    Replies:
    0
    Views:
    811
    uncensored
    Oct 25, 2006
  5. Microsoft

    Repeater inside a Repeater

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

Share This Page