如何在ASP.NET中将Gridview的多个记录插入数据库? [英] How to insert multiple records of Gridview in asp .net into database ?

查看:250
本文介绍了如何在ASP.NET中将Gridview的多个记录插入数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生.

在我的Web应用程序中,页面中有gridview.我想在不使用循环的情况下将多个gridview记录插入SQL数据库.我该怎么办?


谢谢你
Sashi

Sir.

In my web application there is gridview in a page. I want to insert multiple records of gridview into SQL database without using loop. How can I do that ?


thanking u
Sashi

推荐答案

hi,
您可以通过将gridview数据纳入数据集来实现

http://stackoverflow.com/questions/549200/write-dataset-to-sql-table [^ ]

you can do it by taking gridview data into dataset

http://stackoverflow.com/questions/549200/write-dataset-to-sql-table[^]


这篇关于如何在ASP.NET中将Gridview的多个记录插入数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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