如何使用文本框查看记录 [英] How to view a record using textboxes
问题描述
大家好,我只是一个新手.我的问题很简单,如何使用文本框查看数据库中的1条记录.例如,如果我的文本框包含用户标识,那么我希望我的其他文本框包含其他数据
例如:
(我不知道它是否正确,但是在VB6中是代码)
如果txtuser.text =!UserID,则
!Password = txtpassword.text
!Location = txtlocation.text
等
我不知道asp.net中的语法如何,当我在Google上搜索时,仅显示gridview.
请帮助我..在此先感谢您并提供更多功能..
hi guys, im just a newbie here. My question is simple, how to view 1 record form a database using a textbox. Example, if my textbox contains userid then i want my other textboxes contain the other data
EX:
(i dont know if it is correct but in VB6 here is the code)
if txtuser.text = !UserID then
!Password = txtpassword.text
!Location = txtlocation.text
etc.
I dont know how is the syntax in asp.net and when I search on google, only gridview is shown.
Plss help me.. Thanks in advance and more power..
推荐答案
请参阅此链接
http://social.msdn.microsoft.com/Forums/zh/vbgeneral/thread/7bdf84f7-edc8-4ebc-ae5e-012ea7807141 [
see this link
http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/7bdf84f7-edc8-4ebc-ae5e-012ea7807141[^]
这可能会帮助您 ^ ]
This might help you http://social.msdn.microsoft.com/Forums/en/wpf/thread/75b4feb2-1dab-46e3-ae14-0c9b574b6d19[^]
"我不知道ASP.NET中的语法如何,当我在Google上进行搜索时,仅显示GridView." 这不是正确的:仅显示GridView".不要自欺欺人.
—SA
"I don''t know how is the syntax in ASP.NET and when I search on Google, only GridView is shown." This is not true: "only GridView is shown". Don''t fool yourself.
—SA
这篇关于如何使用文本框查看记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!