Welcome! Login
Original Message
Topic

how to auto pass new created id to next page

 
Author theorix 
Date Created 9/15/2003 10:54:04 PM 
Message hello guys,

how can i pass the new created id to next page.
lets say, i have 2 pages: page1.asp and page2.asp
after submitting the first page that is page1.asp, it will go to second page with new created id as parameter.

help me 
 
Responses
Topic Re: how to auto pass new created id to next page  
Author Mutsch 
Date Created 9/16/2003 11:04:50 AM 
Message Take a look at the CCSExamplePack in CCS. The registration example shows you how to do that. Basically find the last entry (e.g. MAX(id)) and store it in the session. Take a look ath the example. It's pretty straight forward.

Mutsch  
 
Topic how to auto pass new created id to next page  
Author Tom 
Date Created 9/20/2003 7:55:49 AM 
Message Watch out on using max id as it is can be very dangerous if you have more than one person using the site. Concurrency issues abound.
Check out the tips/articles as many are written about getting these 'Auto-Increment' or 'Primary Key Values'.  
 

This forum is no longer active.
Please visit http://forums.codecharge.com

This site was generated with CodeCharge