如何在数据库的文本框中显示只读值? [英] How to show readonly values in textbox from database?

查看:75
本文介绍了如何在数据库的文本框中显示只读值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有4个文本框.我要在其上显示数据库表中的只读值.在单击按钮事件之后,我必须再次显示更新的值.我面临的第一个困难是第一个困难是要从DB获取四个字段的数据,而不是在特定的texbox中显示这四个数据.事件.谁能给我解决方案?

I have 4 textboxes. On which I want to show values from a database table which are readonly. After a button click event I have to show the updated values again.Two difficulties I have faced 1st to get four fields of data from DB than show those four data in specific texboxes.another is after doing some calculation showing updated data after a button click event. Can anyone give me a solution?

推荐答案

使用数据读取器进行只读
use data reader for read only


这篇关于如何在数据库的文本框中显示只读值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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