protected void LinqDataSourceSideEffect_Selecting(object sender, LinqDataSourceSelectEventArgs e) { if (!string.IsNullOrEmpty(DIN) && !string.IsNullOrEmpty(ProductCode)) { e.Result = PackSideEffectBLL.Get(DIN, ProductCode); } }
protected void btnOk_Click(object sender, EventArgs e) { PackSideEffectBLL.Add(DIN, ProductCode, txtSideEffect.Text.Trim(), txtNote.Text.Trim()); GridViewSideEffect.DataBind(); txtSideEffect.Text = txtNote.Text = ""; Page.Alert("Lưu thành công."); }