0 Replies - 346 Views - Last Post: 25 February 2011 - 11:47 AM Rate Topic: -----

#1 staindromeo  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 153
  • Joined: 21-October 10

Struggling with Validation Expression At Runtime

Posted 25 February 2011 - 11:47 AM

Hello Everyone,

I am having trouble setting a validation expression at Runtime. The code works, but it isn't doing what I want it to do. My validation expression is as follows:

rev.ValidationExpression = "[0-9]{0,2}([.,][05]0{0,1}){0,1}";


The code basically right now is asking the validator to check for .50, if it is 0.20 or 0.80, the error message pops up. I want to be able to have other decimal values and not only 0.50. Can anyone help me with this?

Thanks

Is This A Good Question/Topic? 0
  • +

Page 1 of 1