protected void ButtonRefresh_Click(object sender, EventArgs e)
 {
     ErrorSuccessNotifier.AddInfoMessage("Products loaded.");
 }
Exemplo n.º 2
0
 protected void ButtonAddSuccess_Click(object sender, EventArgs e)
 {
     ErrorSuccessNotifier.AddSuccessMessage("Product added.");
     ErrorSuccessNotifier.ShowAfterRedirect = true;
     Response.Redirect("ListProducts.aspx");
 }
Exemplo n.º 3
0
 protected void ButtonAddError_Click(object sender, EventArgs e)
 {
     ErrorSuccessNotifier.AddWarningMessage("Warning: product description cannot be empty.");
     ErrorSuccessNotifier.AddErrorMessage("Cannot add product. Make sure the product name is valid.");
 }
Exemplo n.º 4
0
 protected void ButtonNewError_Click(object sender, EventArgs e)
 {
     ErrorSuccessNotifier.AddErrorMessage("Ala ba <b />");
 }