How do I access the strReferralValue for a validation
Is strReferralValue coming from the same page or from the database? Since you want to do only the validation stuff, there should be no problem in both the above cases. If the variable is on the same page, then validation is straight forward, if its from a database, then you've already validated it before putting it there,isn't it.
Please tell some details about what you are trying to do.