[求助]怎样对表做插入操作
private void dlButton_Click(object sender, System.EventArgs e){ string nameLb,godeDl;
nameLb=this.nameLabel.Text;
godeDl=this.godeDropDownList.SelectedItem.Text;
SqlConnection sqlDb=new SqlConnection("Data Source=rsfc;Initial Catalog=sqlDB;User ID=ASPNET;Integrated Security=True");
sqlDb.Open();
string insertStr="INSERT INTO yonghu (用户,性别)Values(****,****)";
SqlCommand insertCMD=new SqlCommand(insertStr,sqlDb);
Int32 recordsAFFected=insertCMD.ExecuteNonQuery();
--------------------------------传说中的线---------------------------------------------------------
就是string insertStr="INSERT INTO yonghu (用户,性别)Values(****,****)";
这句里面的****只能用字符串么 我想用变量 不知道该怎么写 我刚学asp求教则个 谢谢了