Example #1
0
 protected void LinqDataSourceSideEffect_Selecting(object sender, LinqDataSourceSelectEventArgs e)
 {
     if (!string.IsNullOrEmpty(DIN) && !string.IsNullOrEmpty(ProductCode))
     {
         e.Result = PackSideEffectBLL.Get(DIN, ProductCode);
     }
 }
Example #2
0
    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.");
    }