IS 341: Project 11 Solution
0 HW points, 25 PDP points


Homework

There was no homework portion to this assignment.

Personal Database Project

Here's a sample login page I made for the Acme website:

Here's the code that backs this page up. Note that I've used server-side VB.Net programming to verify the login and password rather than a pair of validation functions. This is because ASP.Net validation functions send an unencrypted version of the password to the client machine, whereas this code will be compiled and run on the server without sending any secure information to the client.

Private Sub LoginBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoginBtn.Click
    Feedback.Text = ""
    If (Username.Text = "kvlinden") Then
        If (Password.Text = "secret1") Then
            Feedback.Text = "you're in..."
        Else
            Feedback.Text = "invalid password..."
        End If
    Else
        Feedback.Text = "Unknown user..."
    End If
End Sub

Last modified: Fri Dec 12 10:00:38 Eastern Standard Time 2003
© 2003 Calvin College