简单问题,谢谢
htys3 2004-04-30 09:04:41 在*.asp.cs中,同一页中怎样实现得到ID,谢谢
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
。。。。。。
id = System.Convert.ToInt32(dr["id"]);
....
}
}
private void Button1_Click(object sender, System.EventArgs e)
{
....
string myInsertQuery = "update test set col1='"+TextBox1.Text+"', col2='"+TextBox_2.Text+"' where id = " + id;
....
}