倒包:
using System.Collections.Generic;
using System.Data.SqlClient;
在后台双击以后的事件里写:
SqlConnection Conn=new SqlConnection("server=.;database=数据库名称;uid=sa;pwd=sa");
SqlCommand cmd = conn.CreateCommand();
= "insert into nav values(。。。。。。。。)";//数据库插入语句
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
到这里就插入完毕