INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Welcome message error

Welcome message error

(OP)
Hello

I have a Web page here, but instead of the welcome message greeting the user's email, I have:



strEmailValue is the user's email address (the variable)
strEmail is the email column in my database
strEmailTextBox is the ID of the email form field

What is the reason, please, why I get the variable 'strEmailValue' and not the user's actual email address in the image I have posted?

There are two relevant files, myLogon.aspx.vb and userpage.aspx.vb to which the user is directed after logging on.
In myLogon.aspx.vb, I have:

CODE -->

Protected Sub LogonBtn_Click(sender As Object, e As EventArgs) Handles LogonBtn.Click

        'Authenticate the user

        Dim Authenticated As Boolean = Authenticate(strEmailTextBox.Text, passwordTextBox.Text)

        'If results found, redirect the user

        If Authenticated Then

            Dim target = String.Format("~/userpage.aspx?strEmailValue={0}", strEmailTextBox.Text)

            Response.Redirect(target, False)

         End If

    End Sub 

In userpage.aspx.vb, I have:

CODE -->

Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load

        If Not IsPostBack Then

            Dim strEmailValue As String

            Label2.Text = "Hello " & strEmailValue & ", welcome!"

        End If

        If Not String.IsNullOrEmpty(Request.QueryString("strEmailValue")) Then

            Message = Request.QueryString("strEmailValue")

           End If

         End Sub 

What mistake I making, please?

Thank you.

RE: Welcome message error

(OP)
This is resolved now, thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close