如何生成动态ID [英] how to generate the dynamically id

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

问题描述

我必须在注册表上的文本框中输入动态ID.

我必须以以下格式( 300812NEAU )创建该ID,其中300812是2012年8月30日(08).和NE前缀来自NEWYORK,而AU则来自澳大利亚.
和值NE&所有我都必须从文本框或下拉列表中获取.

而且我已经完成了300812的部分.我已经在ID中使用了此值.但是其余NE和AU如何获取这些值.

i have to make a dynamic id in textbox on register form.

i have to make that ID in this format(300812NEAU) in which 300812 is the 30 august(08) 12 (2012). and NE prefix come from the NEWYORK and AU comes the Australia.
and the values NE & AU i have to take from textbox or either dropdownlist.

and i have done the 300812 part . ihave take this value in ID. but the rest NE and AU how can i take these values.

推荐答案

SELECT        LEFT(REPLICATE('', 2) + country_name, 2) AS Expr1
FROM            route_defination




使用这个我得到我的国家的fisrttwo前缀,然后将这些前缀显示给我的texbox.

终于我完成了.




using this i get my fisrttwo prefix of my country and then i show these prefix to my texbox.

finally i have done .


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

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