protected void ButtonRefresh_Click(object sender, EventArgs e)
 {
     ErrorSuccessNotifier.AddInfoMessage("Products loaded.");
 }
Beispiel #2
0
 protected void ButtonAddSuccess_Click(object sender, EventArgs e)
 {
     ErrorSuccessNotifier.AddSuccessMessage("Product added.");
     ErrorSuccessNotifier.ShowAfterRedirect = true;
     Response.Redirect("ListProducts.aspx");
 }
Beispiel #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.");
 }
Beispiel #4
0
 protected void ButtonNewError_Click(object sender, EventArgs e)
 {
     ErrorSuccessNotifier.AddErrorMessage("Ala ba <b />");
 }