User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 423,648 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,143 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 5618 | Replies: 0
Reply
Join Date: Jan 2005
Posts: 2
Reputation: Belvee is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Belvee Belvee is offline Offline
Newbie Poster

Passing Parameters

  #1  
Jan 17th, 2005
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
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 10:37 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC