Expression Validator

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sam

    #1

    Expression Validator

    I'm new to ASP.Net so forgive my ignorance regarding best
    practices & new technologies.

    I'm uing the RegularExpressi onValidator on numerous aspx
    pages, that are often repeated. For example I've date &
    phone # fields on numerous screens that I'm validating.

    It makes sense to me that I could & should store the
    expression in a central location (global or web.config),
    so that the expression could be shared by all validators
    that need it. That way, if I ever need to change the
    expression, I only need to change it in one place, not on
    each field of every screen. However, I cannot figure out
    how to do this. Any assistance will be appreciated.

    Thanks,

    Sam
Working...