using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Text;
public partial class 多数据插入临时表 : System.Web.UI.Page
{
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
this.MakeDataTable();
this.GridView1.DataSource = this.InsertTable;
this.GridView1.DataBind();
}
}
protected void MakeDataTable()
{
this.InsertTable = new DataTable();
DataColumn nameCol = new DataColumn("EmpName", typeof(string));
DataColumn describeCol = new DataColumn("EmpDescribe", typeof(string));
DataColumn usageCol=new DataColumn("EmpUsage",type
多行数据插入,使用临时表
最新推荐文章于 2021-08-07 23:54:01 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)