Belvee 0 Newbie Poster

Hi All, Can someone please help me with this...I have a search page which searches for users on the database. I need to get the username first and last names and write them to another page. I am not sure how to do this. an someone please help....so far I have this on my code but it does not seem to work the way I want it to.

Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click

        If Page.IsValid Then
            If dbconnection(FirstName.Text, LastName.Text) = True Then
                Response.Redirect("EmployeeProfile.aspx?FirstName&LastName =" & System.Web.HttpUtility.UrlEncode(FirstName.Text) & _
                System.Web.HttpUtility.UrlEncode(LastName.Text))
            Else
                lblMessage.Text = "Invalid Name!"
            End If

        End If
End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.