In my log-on page, my code includes the following:
Expand|Select|Wrap|Line Numbers
- Protected Sub LogonBtn_Click(sender As Object, e As EventArgs) Handles LogonBtn.Click
- 'Retrive the post values and call the authentication method
- Dim Authenticated As Boolean = Authenticate(strEmailTextBox.Text, passwordTextBox.Text)
- 'If we found results then redirect to the userpage.aspx
- If Authenticated Then
- Dim target = String.Format("~/userpage.aspx?strEmail={0}", strEmailTextBox.Text)
- Response.Redirect(target, False)
- Else
- MsgBox("Sorry, email or password not found")
- End If
- End Sub
strEmailValue is the user's email, the variable that is unknown until the user types it in when logging on.
strEmailTextBox is the TextBox he types the variable, his email address, into.
strEmail is the email column in my Access database.
So, looking again at the code above, shouldn't strEmail in this line:
Expand|Select|Wrap|Line Numbers
- Dim target = String.Format("~/userpage.aspx?strEmail={0}", strEmailTextBox.Text)
Expand|Select|Wrap|Line Numbers
- Dim target = String.Format("~/userpage.aspx?strEmailValue={0}", strEmailTextBox.Text)
Many thanks!