This is simple and effective method for generation of a random password
Public Function GeneratePassword(ByVal PwdLength As Integer) As String
Dim _allowedChars As String = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789"
Dim rndNum As New Random()
Dim chars(PwdLength - 1) As Char
Dim strLength As Integer = _allowedChars.Length
For i As Integer = 0 To PwdLength - 1
chars(i) = _allowedChars.Chars(CInt(Fix((_allowedChars.Length) * rndNum.NextDouble())))
Next i
Return New String(chars)
End Function
Nimish Garg
Software Developer
Indiamart Intermesh Limited, Noida
To Get Free ASP.NEt & Oracle Code Snippets
Follow: http://nimishgarg.blogspot.com
The ASP.NET Wiki was started by Scott Hanselman in February of 2008. The idea is that folks spend a lot of time trolling the blogs, googlinglive-searching for answers to common "How To" questions. There's piles of fantastic community-created and MSFT-created content out there, but if it's not found by a search engine and the right combination of keywords, it's often lost.
The ASP.NET Wiki articles moved to CodeProject in October 2013 and will live on, loved, protected and updated by the community.