nuno5793 Posted December 30, 2009 at 06:50 PM Report Share #303272 Posted December 30, 2009 at 06:50 PM Boas, Estou a criar um componente do tipo "regularexpressionValidator" com a seguinte expressão: ^[\d]{1,3}$ A ideia é não permitir adicionar um numero maior que 100 e menor que 0. Alguma ideia para completar a expressão? Link to comment Share on other sites More sharing options...
bruno1234 Posted December 30, 2009 at 09:12 PM Report Share #303303 Posted December 30, 2009 at 09:12 PM ^(([0-9])?[0-9]|100)$ Matraquilhos para Android. Gratuito na Play Store. https://play.google.com/store/apps/details?id=pt.bca.matraquilhos Link to comment Share on other sites More sharing options...
renafi Posted December 31, 2009 at 10:13 AM Report Share #303383 Posted December 31, 2009 at 10:13 AM Mas esse valor é inserido pelo utilizador? Para isso colocas um rangevalidator e resolves o problema. Oracle Certified Professional - AdministraçãoOracle Certified Professional - Pl/sqlMCPD - Microsoft Certified Professional DeveloperMCTS - Microsoft Certified Technology Specialist Link to comment Share on other sites More sharing options...
cyclop Posted January 6, 2010 at 11:29 AM Report Share #304426 Posted January 6, 2010 at 11:29 AM Uma pergunta.... porquê usar regex nesse caso de validação? "Quando eu for grande quero ser como o Celso" Link to comment Share on other sites More sharing options...
paulo silva Posted January 6, 2010 at 11:38 AM Report Share #304431 Posted January 6, 2010 at 11:38 AM sou da opinião do renafi um range validator resolve o problema muito mais facilmente Cumprimentos Paulo Silva Link to comment Share on other sites More sharing options...
nuno5793 Posted January 26, 2010 at 03:54 PM Author Report Share #308114 Posted January 26, 2010 at 03:54 PM sou da opinião do renafi um range validator resolve o problema muito mais facilmente Cumprimentos Paulo Silva Bao tarde, O problema já foi resolvido. Acabei por utilizar o range validator/required field validator. A ideia em utilizar regex era para minimizar o numero de componentes uma vez que também estava a utilizar controls AJAX. Obrigado na mesma. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now