如何在数据库中保存gridview记录 [英] how to save the gridview records in the database
本文介绍了如何在数据库中保存gridview记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行模式如下
Facid 1 2 3
1好(dropdownlist1)公平(dropdownlist2)差(dropdownlist3)
2好(dropdownlist4)公平(dropdownlist5)差(dropdownlist6)
表中我要保存以上记录如下
Facid 1 2 3
1好公平差
2好公平可怜
我怎么能在asp.net使用csharp。
此致,
Narasiman P.
解决方案
尝试
http://www.aspsnippets.com/Articles/Populate-DropDownList-with-Selected -Value-in-EditItemTemplate-of-GridView-in-ASPNet.aspx [ ^ ]
如何将gridview数据保存到具有下拉列表的数据库。 [ ^ ]
http://www.dotnetfunda.com/articles/show/989/dropdownlist-in -the-gridview-keeping-aspnet-forms-control-in-gridview [ ^ ]
建立与数据库的连接并插入表中的详细信息如同thi s
插入Table1(Field1,Field2,Field3)值('1','2','3');
参考
http://www.csharptutorial.in/2014/01/AspNet-GridView-How-to-Update-Delete-Insert-in-GridView -in-csharpnet.html [ ^ ]
Run mode as follows
Facid 1 2 3
1 Good(dropdownlist1) Fair(dropdownlist2) Poor(dropdownlist3)
2 Good(dropdownlist4) Fair(dropdownlist5) Poor(dropdownlist6)
in Table i want to save above records as follows
Facid 1 2 3
1 Good Fair Poor
2 Good Fair Poor
for that how can i do in asp.net using csharp.
Regards,
Narasiman P.
解决方案
Try
http://www.aspsnippets.com/Articles/Populate-DropDownList-with-Selected-Value-in-EditItemTemplate-of-GridView-in-ASPNet.aspx[^]
How to save gridview data to a database which has dropdown lists.[^]
http://www.dotnetfunda.com/articles/show/989/dropdownlist-in-the-gridview-keeping-aspnet-forms-control-in-gridview[^]
make a connection to the database and insert your details in the table like this
Insert Into Table1(Field1,Field2,Field3)values('1','2','3');
Refer
http://www.csharptutorial.in/2014/01/AspNet-GridView-How-to-Update-Delete-Insert-in-GridView-in-csharpnet.html[^]
这篇关于如何在数据库中保存gridview记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文