Question: How do I use a custom validator in a gridview?

Discussion in 'ASP' started by tokuzumi, Apr 5, 2007.

  1. tokuzumi

    tokuzumi New Member

    Apr 5, 2007
    Likes Received:
    Trophy Points:
    I have a gridview where I am trying to validate two concatenated fields with two other concatenated fields. The fields I concatenate build a date/time string. Each set of fields has a dropdown, with a date, in mm/dd/yyyy format, and a textbox, which uses a RegularExpressionValidator to ensure the time is entered in 12-hour time, in the HH:MM am/pm format. The fieldnames I use are DDLDateIn and txtTimeIn, and DDLDateOut and txtTimeOut. If anyone has any suggestions on how to use a custom validator control inside of the GridView, I'd love to hear them. Thanks.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice