单击提交按钮时如何生成ID [英] how to generate the id on clicking on the submit button

查看:95
本文介绍了单击提交按钮时如何生成ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我有带有文本字段和带有个人详细信息的提交按钮的Webform.

我的要求是,单击提交按钮后,人员将自动生成ID,当新人员提交其详细信息时,ID将增加1.

请给出解决方案.

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.

推荐答案

对于指定的要求,在可用信息最少的情况下,我认为您需要使用非易失性存储,例如DB.
您可以将自动递增的"id"字段作为主键的用户或个人表.

使用此ID.

谢谢
Milind
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


进行身份(属性) [ ^ ]要增加的列true.
Make IDENTITY (Property)[^] of your column true, which you want to increment.


这篇关于单击提交按钮时如何生成ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆