Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
Peeyush Pachaori 11-Oct-12 10:27am    
Do you want the person id to increment and save in database?

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
 
Share this answer
 
Make IDENTITY (Property)[^] of your column true, which you want to increment.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900