Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Student login as follows

Student id 1000
Password 12345

Waitlist screen as follows

course name AFF
Batch date 23 Mar 2015
submit (Button)

When i click the submit button in gridview record as follows

Waitlistid Coursename Batch date
1 AFF 23 Mar 2015


Suppose when second student login as follows

Student id 2000
Password 23241

Waitlist screen as follows

course name MFA
Batch date 20 June 2015
submit (Button)

When i click the submit button in gridview record as follows

Waitlistid Coursename Batch date
2 MFA 20 June 2015

when second student login( student id (2000)) in gridview i want to generate the waitlistid 2.

for that how can i do in asp.net using c#.
Posted

1 solution

Set that Waitlistid column Auto increment in database with increment as 1. So, it will be generated automatically, when you save a record in database.
 
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