Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validation of a Text Box based on Tab Index
Message
 
À
17/05/2001 07:09:10
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00508233
Message ID:
00508293
Vues:
23
In answer to part of your question (I hope), I offer the following.

Here is some VB Script that you can use at the object level for validation.


' Entry required...
sub txtCallerName_OnBlur()
if len(frmLineDetail.txtCallerName.value) = 0 then
alert ("Caller Name is required")
frmLineDetail.txtCallerName.Focus
end if
End Sub


' Numeric validation...
sub txtQuantity_OnBlur()
if len(frmLineDetail.txtQuantity.value) > 0 then
if not IsNumeric(frmLineDetail.txtQuantity.value) then
alert ("Not a valid number")
frmLineDetail.txtQuantity.focus
end if
end if
end sub


' Date validation...
sub txtQuantity_OnBlur()
if len(frmLineDetail.txtQuantity.value) > 0 then
if not IsNumeric(frmLineDetail.txtQuantity.value) then
alert ("Not a valid number")
frmLineDetail.txtQuantity.focus
end if
end if
end sub
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform