ASP.NET网格视图值到数据库 [英] Asp.net grid view values to database

查看:59
本文介绍了ASP.NET网格视图值到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当网格绑定时,我将出现带有动态字段的网格.我想将此字段插入数据库中,任何人都可以帮助我!

I have grid with dynamic fields will appear when grid binds I want to insert this fields into database can any one help me!

推荐答案

在网格行中循环.获取所需字段的值.形成要插入的值表,然后在数据库中更新此数据表.

试试吧!
Loop through the grid rows. Get the values of the fields needed. Form a table of values to be inserted and then update this datatable in your database.

Try!


这篇关于ASP.NET网格视图值到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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