exterminator Posted August 3, 2012 at 03:28 AM Report Share #471345 Posted August 3, 2012 at 03:28 AM Boas, tenho dois text box com maskara para datatime, entao quero validar se a data inserida é valida, tipo para o usuario nao inserir 12/13/2012 meses que nao existem ou mesmo dias e e para nao passar do tamanho ja é 8 dois do dia, dois do mes e quatro do ano. Já q uso o evento textchanged para carregar um select num dropbox obrigado pela ajuda. Link to comment Share on other sites More sharing options...
Caça Posted August 3, 2012 at 08:06 AM Report Share #471349 Posted August 3, 2012 at 08:06 AM Utiliza o Date.TryParse http://msdn.microsoft.com/en-us/library/9h21f14e.aspx Pedro Martins Não respondo a duvidas por PM Link to comment Share on other sites More sharing options...
cro Posted August 17, 2012 at 03:20 PM Report Share #472627 Posted August 17, 2012 at 03:20 PM Deves fazer isso recorrendo ao cliente ( em javascript ) senão estás a fazer um postback ( mesmo com um updatepanel ) desnecessário. 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