Click here to Skip to main content
13,596,545 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
dear all,

I have webform with textfields & with submit button of person details.

My requirement is after clicking submit button person'id should automatically generate and it is incremented by 1 as new person submit his details.

please give the solution.
Posted 11-Oct-12 1:42am
Comments
Peeyush Pachaori 11-Oct-12 10:27am
   
Do you want the person id to increment and save in database?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Make IDENTITY (Property)[^] of your column true, which you want to increment.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

For the requirement specified, with least information available in question, I think you need to use a non-volatile storage like DB.
You can have user or person table with auto-increment "id" field as primary key.

Use this id.

Thanks
Milind
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web03-2016 | 2.8.180621.3 | Last Updated 11 Oct 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100