如何使用asp.net在c#中保存多个值 [英] how to save multiple value in c# with asp.net

查看:84
本文介绍了如何使用asp.net在c#中保存多个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有太大的页面大小和itemmaster

大小的主人我输入size.now在项目主文件当我选择保存所有大小复选框我想保存所有大小从大小主人到itemmaster table ...?

i have too page size master and itemmaster
in size master i enter size.now in item master when i select save all size checkbox i want to save all size from the size master in to itemmaster table ...?

推荐答案

在Sql中使用光标。

或使用for(int x = 0; x< = n; x ++)或foreach(tbl_size中的数据d1)循环以获取size表中的值并将insert插入到item_master表中。
Use Cursor In Sql.
or Use a for(int x=0;x<=n;x++) or foreach(data d1 in tbl_size ) Loop to get the values from size table and Insert in into the item_master table.


这篇关于如何使用asp.net在c#中保存多个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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