我需要请你帮忙 [英] I need to ask take on help from u

查看:90
本文介绍了我需要请你帮忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,
我必须在数据库中插入动态生成的HTML行数据.
我应该直接将其插入数据库中还是应该在HTML表格下方放置一个网格?

假设我在HTML表中有2条记录,那么我应该将该数据存储到网格中,然后将其保存到数据库中吗?

我该怎么办?

Hello Sir,
I have to insert dynamic generated HTML Rows data in database.
should i directly insert it into database or should i take one grid put it below that HTML table.

Suppose I have 2 records in the HTML Table then should i store that data into grid and then save it into database ?

what should i do ?

推荐答案

使用Textbox列填充gridview,接受用户输入并将其输入数据库.
Populate gridview with Textbox column, accept input from user and strore it in database.


是,您可以使用数据集填充网格视图,
更改可编辑网格中的几行.

使用dataadapter.update(ds)
更新数据集
返回类型ss Integer.如果将此值分配为Integer值,则将获得更新的行数.

您可以调用Dataset.GetChanges来获取插入/删除/更新或修改的确切行.

希望这可以帮助您解决问题.
Yes, you can populate grid view using dataset,
change few rows in the editable grid.

Update your datset using dataadapter.update(ds)

the return type ss Integer. If you assign this to Integer value , you will get the number of rows updated.

You can call the Dataset.GetChanges to get the exact rows inserted/deleted/update or modified.

Hope this will help you to resolve your issue.


这篇关于我需要请你帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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