Validation

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

Hello all,

I'm very new to ASP.NET and I am using VS.NET to write my pages.

I am using the Regular Expression Validator on my form and I would like it
to check a field to make sure it does not equal 0. Can anyone point me to
some resources with this type of information?

Thanks,

- J
 
That work perfectly!

Thanks!

- J

Karl Seguin said:
While you could use a RegExVal for this and check for [^0] or something, you
could also use a requiredfieldvalidator and set the initialvalue="0"

http://msdn.microsoft.com/library/d...uiredFieldValidatorClassInitialValueTopic.asp

Karl

Jay said:
Hello all,

I'm very new to ASP.NET and I am using VS.NET to write my pages.

I am using the Regular Expression Validator on my form and I would like it
to check a field to make sure it does not equal 0. Can anyone point me to
some resources with this type of information?

Thanks,

- J
 
Back
Top