if(ProductIDCheck.Checked) { nowTable2.Rows[i][5] = 1;//添加删除标记1 j=j+1; } } string strExpr="IsDeleted>0"; //http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpref/html/frlrfSystemDataDataTableClassSelectTopic.asp DataRow[] foundRows = nowTable2.Select(strExpr); for(int m = 0; m < foundRows.Length; m ++) { //Console.WriteLine(foundRows[i][0]); foundRows[m].Delete(); } ShoppingCartDlt.DataSource = nowTable2.DefaultView; ShoppingCartDlt.DataBind(); Session["myCartTable"] = nowTable2; Caculator();
}
#region Web 窗体设计器生成的代码 override protected void OnInit(EventArgs e) { // // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。 // InitializeComponent(); base.OnInit(e); } /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.update.Click += new System.EventHandler(this.update_Click); this.CheckOut.Click += new System.EventHandler(this.CheckOut_Click); this.Load += new System.EventHandler(this.Page_Load);
} #endregion
private void update_Click(object sender, System.EventArgs e) { Update(); }
private void CheckOut_Click(object sender, System.EventArgs e) { Update(); Response.Redirect("checkout.aspx"); } }}
上一页 [1] [2] [3]
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18