Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 14th, 2006, 03:00 AM
Registered User
Join Date: Oct 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to louie001 Send a message via AIM to louie001 Send a message via MSN to louie001 Send a message via Yahoo to louie001
Default Passing the Id to another form

Gud Morning to all, Im using textbox control and search button, example. input "louie", but the name louie is not yet in the database, clicking the search button, redirect to another form and saying "Your input name "louie" is not in the database. My Question is, How can i pass the PersonId to another form? Pls,. Help me...



Old July 14th, 2006, 06:45 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

You need to be more specific. If the string 'louie' isnt in the Database how is it that you have a personID to pass to another page?

To accomplish what your doing you can A) In your Search method you could set a session variable to hold the personID or B) Send it via query string

On the second page you would do something like this:

Dim strID as string = Session("PersonID")
Dim strID as string = Request.QueryString("ID")

Then you can do anything you want with that id on the second page.

"The one language all programmers understand is profanity."

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update DB by passing ID number jonsey Classic ASP Professional 1 April 11th, 2007 07:05 PM
Passing ID query rsm42 ASP.NET 1.0 and 1.1 Basics 2 January 7th, 2007 10:45 AM
Passing asp control id to javascript jazzcatone ASP.NET 1.0 and 1.1 Professional 0 October 18th, 2006 01:38 PM
passing session Id via email ? Gotaka4 Pro PHP 2 March 30th, 2005 09:24 AM
Passing a variable into the id() function EstherMStrom XSLT 5 January 19th, 2005 02:32 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.