如何更新从datareader检索数据的文本框中的数据 [英] how to update data from textbox that retrieve data from datareader

查看:80
本文介绍了如何更新从datareader检索数据的文本框中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在从sql数据库中检索数据后在我的文本框,下拉列表中显示我的数据,但是当我继续我的更新按钮时,在文本框或下拉列表中编辑的信息将不会更新到数据库中。我试图删除页面加载中的代码,并手动重新键入所有数据,它可以更新。我想要的只是从数据库中检索数据并将其显示在文本框中,并且可以在从文本框进行一些更改后更新到数据库中。有人可以帮我吗?谢谢。(asp.net with vb)

解决方案

请在此链接上找到解决方案。

可能对您有所帮助任务。



http:// androidsharp.blogspot.in/2013/07/createreadupdatedelete-crud-operations.html [ ^ ]




第2部分我们将介绍更新操作

http://androidsharp.blogspot.in/2013/07/createreadupdatedelete-crud-operations_9。 html [ ^ ]




第3部分我们将介绍删除操作
http://androidsharp.blogspot.in/2013/07/createreadupdatedelete-crud -operations_10.html [ ^

I can display my data in my textbox, dropdownlist after retrieve data from sql database, but when i proceed with my update button, the information edited in the textbox or dropdownlist wouldn't update into the database. I tried to remove the code in page load, and re-key in all the data manually, it can be update. All I want is retrieve data from database and display it in the textbox, and it can be update into the database after make some changes from the textbox. Can someone help me on this? Thanks.(asp.net with vb )

解决方案

Please find the solution on this link.
May be it will be helpfull for your task.

http://androidsharp.blogspot.in/2013/07/createreadupdatedelete-crud-operations.html[^]


Part 2 we will describe about Update Operations
http://androidsharp.blogspot.in/2013/07/createreadupdatedelete-crud-operations_9.html[^]


Part 3 we will describe about delete operations
http://androidsharp.blogspot.in/2013/07/createreadupdatedelete-crud-operations_10.html[^]


这篇关于如何更新从datareader检索数据的文本框中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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