There is another way to get username and
password data rather than from a database or what we did before. By using the
<credentials> tag we can provide usernames and passwords for users.
<user name="philipq" password="password" />
This goes within the <authenticate> tags and
you can just add more users and needed. The passwordFormat can be Clear, MD5
or SHA1 which is the format that the passwords are encrypted in.
You then have to modify your login.aspx code
like this -
Sub btn_click(sender as object, e as eventargs)
If FormsAuthentication.Authenticate(uname.text, pword.text) Then
lblmsg.Text = "Invalid username or password"
The Authenticate method takes in the username
and password and returns true or false.