Gridview插入问题 [英] Gridview inserting Problem
本文介绍了Gridview插入问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是ASP.NET的新手
请帮我一个问题,我想将数据从文本框添加到Gridview,然后再添加到数据库中.
在Advance中致谢
I am new For ASP.NET
plz Help me I have problem that i want to add data From Textbox to Gridview and then into the Database.
Thanks in Advance
推荐答案
最好将文本中的数据添加到数据库中,然后重新加载GridView
better to add data from text into database and then reload your GridView
您可以将数据添加到从文本框中创建一个DataTable,然后将该表添加为GridView的源.之后,将数据从Datatable插入到数据库中.
欢呼...
You can add the data to a DataTable from the textbox and then add the table as a source of the GridView.After that insert data from the Datatable to the database.
cheers...
这篇关于Gridview插入问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文