can we assign multiple textbox to validate by a single regular expression validator??

Last post 06-02-2008 6:22 AM by tasnim5. 3 replies.

Sort Posts:

  • can we assign multiple textbox to validate by a single regular expression validator??

    06-02-2008, 4:53 AM
    • Participant
      1,364 point Participant
    • someguy198650
    • Member since 06-02-2008, 2:08 AM
    • Midgard
    • Posts 469

    hi, can we assign multiple textbox to validate by a single regular expression validator?? the property validation group? what's its use??

  • Re: can we assign multiple textbox to validate by a single regular expression validator??

    06-02-2008, 5:20 AM
    Answer
    • Contributor
      6,676 point Contributor
    • ramblor
    • Member since 03-13-2008, 10:03 AM
    • Posts 1,013

    I think you can only validate one textbox with one RegularExpressionValidator. To validate multiple textboxes with one control you'd need to use a CustomValidator.

    The ValidationGroup property groups various controls together so you can validate only the controls in a specific group, e.g. if you had a section of your page for logging in and one for searching, each with required field validators, you wouldn't want to be told to enter your username & password when you hit the "Search" button.

    "Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
  • Re: can we assign multiple textbox to validate by a single regular expression validator??

    06-02-2008, 5:28 AM
    • Participant
      1,364 point Participant
    • someguy198650
    • Member since 06-02-2008, 2:08 AM
    • Midgard
    • Posts 469

     

    thanks Smile
  • Re: can we assign multiple textbox to validate by a single regular expression validator??

    06-02-2008, 6:22 AM
    • Participant
      1,667 point Participant
    • tasnim5
    • Member since 06-08-2006, 12:24 AM
    • Mumbai, India
    • Posts 276

    Try to check this link:

    http://www.codeproject.com/KB/validation/MultiDependValidator.aspx

    May be it can help you Smile 

    Regards

    Ahmad

    Regards,
    Ahmed

    ***************************************************
    Please don't forget to mark the post as Answer, which helps you.

    Thank you.
    www.ahmadtasnim.com
Page 1 of 1 (4 items)