如何在数据库表中存储GridView [英] How to store gridview in database table
本文介绍了如何在数据库表中存储GridView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用TemplateField在绑定中使用gridview.
我无法在数据库中存储TemplateField数据.
请帮助我,给我一些解决方法.
I am using gridview in bind using TemplateField.
I am not able to store TemplateField data in database.
Please help me, give me some sollution.
推荐答案
您需要执行以下操作:
you need to do something like below :
TextBox txt1 = (TextBox)gvSamplePrice.Rows[i].FindControl("YourTextBoxId");
然后在代码中使用 txt1.Text .
then use txt1.Text in your code.
能否请您参考以下网址.您可能会得到一些提示.
http://forums.asp.net/t/1431084.aspx/1 [ ^ ]
Hi
Can you please refer the following url. You may get some hints.
http://forums.asp.net/t/1431084.aspx/1[^]
这篇关于如何在数据库表中存储GridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文