通过自动填充从数据库中检索的textbox1,其他文本框也应被填充 [英] by autofilling the textbox1 retriving from database other textbox's should also get filled

查看:72
本文介绍了通过自动填充从数据库中检索的textbox1,其他文本框也应被填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在数据库中,我有一个名为MYTABLE
的表
我有3个姓氏(名字)(姓氏)(城市)

并且在aspx中时

我有textbox1 textbox2 textbox3

并且在自动填充textbox1的输出中,立即结果应从数据库传递给textbox2和textbox3

您可以向我介绍更好的方法吗...

谢谢
鉴于

in database i have table named MYTABLE

i have 3 feilds in it (firstname) (lastname) (city)

and when in aspx

i have textbox1 textbox2 textbox3

and in output when textbox1 is autofilled the immediate results should pass to textbox2 & textbox3 from database

COULD U EXPLAIN ME THE BETTER WAY TO DO........

THANKS
IN REGARDS

推荐答案

将数据收集到数据表中并相应地进行填充

假设数据表包含名字,姓氏和城市,则textbox1.text = datatable1.rows [0] ["FirstName"].tostring()...

是我回答您的查询还是让我们知道您的确切期望.
Collect the Data into a datatable and fill it accordingly

for suppose the datatable contains firstname, lastname and city then textbox1.text = datatable1.rows[0]["FirstName"].tostring()...

Am I answered your query or let us know what exactly you are expecting.


确保文本框的自动完成属性为false
make sure that text box autocomplete property is false


这篇关于通过自动填充从数据库中检索的textbox1,其他文本框也应被填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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