Saturday, April 10, 2010

I Like Smelling Mom Feet

validation of information.

Hello, working on a project had the problem of validation of text controls in introducing numerical values.
used a validation component and a text filter specifying

TargetControlID = "txtestandar" ValidChars = "." FilterType = "Custom , Numbers

but when the page generated an exception filter control and stopped working so looking for a way to validate the information in the customer if filters annoying to find the next solution

double result;
if (Double.TryParse ("2.2.2.2.", out result)) {}


else {throw new Exception ("You must type in numeric values \u200b\u200bonly" );}


here, the outcome variable to store the value of the comparison made medinte the

0 comments:

Post a Comment