DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ASP (http://www.daniweb.com/forums/forum62.html)
-   -   Passing Parameters (http://www.daniweb.com/forums/thread17085.html)

Belvee Jan 17th, 2005 4:38 am
Passing Parameters
 
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


All times are GMT -4. The time now is 6:53 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC