Hi,
Iam working in .net2.0 and i have a doubt at the time of entering a password i had used Regular Expression.
Here i want to enter only the combination of Alpha and Numeric but not only Alphabets and only Numeric.
If anybody knows the answer , Plz help me
Regards
rkm
Module Module1
Public Function isalphanumeric(ByVal astring As String) As Boolean
If IsNumeric(astring) Then
Return False
Exit Function
End If
Dim another As Char
Dim i As Int16
For i = 1 To Len(astring)
another = Mid(astring, i, 1)
If IsNumeric(another) Then
Return True
Exit Function
End If
Next
Return False
End Function
End Module