1 AFF 2015年3月23日 假设第二个学生登录时如下 学生ID 2000 密码23241 等候名单屏幕如下 课程名称MFA 批日期2015年6月20日 提交(按钮) 当我点击subm gridview记录中的按钮如下 Waitlistid Coursename批日期 2 MFA 2015年6月20日 当第二个学生登录(学生ID(2000))在gridview中我想生成waitlistid 2. 我该怎么办? asp.net使用c#。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#.推荐答案 设置 Waitlistid 列数据库中的自动增量,增量为1.所以,当您在数据库中保存记录时,它将自动生成。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. 这篇关于如何增加下一个学生的等候名单ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-27 15:18