根据sql记录动态创建文本框 [英] dynamically creating textboxes based on sql records

查看:89
本文介绍了根据sql记录动态创建文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否建议使用基于用户名的表格来显示来自

a sql表的文本框列表,然后将捕获的数据放回到

db?


我有一个表|用户ID |技能|级别|。我需要将列表显示给

用户,让他们更新级别,然后将这些数据存储回

表。我似乎无法根据技能字段中的文本将文本框创建为具有唯一

id的asp控件。(使我能够将数据恢复为

进入数据库)


感谢任何帮助或指示


tony

Is there a recommended way to have a form that is a list of textboxes from
a sql table based on a username that then puts the captured data back into
the db?

I have a table |userid|skill|level|. I need to display the list to the
user, have them update the level and then store this data back into the
table. I can''t seem to create the textboxes as asp controls with a unique
id based on the text in the skill field.(to enable me to put the data back
into the database)

thanks for any help or pointers

tony

推荐答案

Tony,


为什么不使用datagrid?你可以制作包含文本框的模板列。


Eliyahu


" Tony" < tony@Wright_nospam_one.co.uk>在消息中写道

news:pan.2004.06.26.08.39.17.609079@Wright_nospam_ one.co.uk ...
Tony,

Why not to use datagrid? You can make template columns containing textboxes.

Eliyahu

"Tony" <tony@Wright_nospam_one.co.uk> wrote in message
news:pan.2004.06.26.08.39.17.609079@Wright_nospam_ one.co.uk...
是否有建议的方式来获得一个表格是一个基于用户名的sql表的文本框列表,然后将捕获的数据放回到数据库中?

我有一个表|用户ID |技能|级别|。我需要向
用户显示列表,让他们更新级别,然后将这些数据存储回
表。我似乎无法根据技能领域中的文本将文本框创建为具有唯一
id的asp控件。(使我能够将数据重新放回数据库中)

感谢您的帮助或指示

tony
Is there a recommended way to have a form that is a list of textboxes from
a sql table based on a username that then puts the captured data back into
the db?

I have a table |userid|skill|level|. I need to display the list to the
user, have them update the level and then store this data back into the
table. I can''t seem to create the textboxes as asp controls with a unique
id based on the text in the skill field.(to enable me to put the data back
into the database)

thanks for any help or pointers

tony



On Sun,2004年6月27日11:27:55 + 0200,Eliyahu Goldin写道:
On Sun, 27 Jun 2004 11:27:55 +0200, Eliyahu Goldin wrote:
Tony,

为什么不使用datagrid?您可以制作包含
文本框的模板列。

Eliyahu
Tony,

Why not to use datagrid? You can make template columns containing
textboxes.

Eliyahu




您好,能否告诉我在哪里可以找到一个好的教程模板?我已经看了几个但没有给初学者的东西。当id未知时(动态创建),有没有显示如何访问帖子背面的文本框?


谢谢


Tony



Hi, can you tell me where to find a good tutorial on templates? I have had
a look at a few but nothing for the beginner. Do any show how to access
the textbox on a post back when the id is not known(Created dynamically)?

Thanks

Tony


Tony,


我不太了解教程,抱歉。至于id,它是众所周知的。看看

UniqueId属性。它是专门为您的目的而制作的。


Eliyahu


" Tony" < tony@Wright_nospam_one.co.uk>在消息中写道

news:pan.2004.06.27.09.10.57.706667@Wright_nospam_ one.co.uk ...
Tony,

I don''t know much about tutorials, sorry. As to id, it is known. Look at
UniqueId property. It is made specially for your purposes.

Eliyahu

"Tony" <tony@Wright_nospam_one.co.uk> wrote in message
news:pan.2004.06.27.09.10.57.706667@Wright_nospam_ one.co.uk...
On Sun,2004年6月27日11:27: 55 + 0200,Eliyahu Goldin写道:
On Sun, 27 Jun 2004 11:27:55 +0200, Eliyahu Goldin wrote:
Tony,

为什么不使用datagrid?您可以制作包含
文本框的模板列。

Eliyahu
Tony,

Why not to use datagrid? You can make template columns containing
textboxes.

Eliyahu



您好,能告诉我在哪里可以找到关于模板的好教程吗?我已经看过一些但对于初学者来说没什么。当id未知时(动态创建),是否有任何显示如何访问帖子背面的文本框?

谢谢

Tony



Hi, can you tell me where to find a good tutorial on templates? I have had
a look at a few but nothing for the beginner. Do any show how to access
the textbox on a post back when the id is not known(Created dynamically)?

Thanks

Tony



这篇关于根据sql记录动态创建文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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