protected void btnSend_Click(object sender, EventArgs e) { var sSentToR = ""; var sSentToOA = ""; var sSentToBDA = ""; try { Admin.SendDueDateReminder(ddlLoads.SelectedItem.Value, txtLoadDate.Value, txtDueDate.Value, out sSentToR, out sSentToOA, out sSentToBDA); lblError.Text = DisplayMessage("Reminder has been sent to: <br>Reviewers: " + sSentToR + "<br>Org Admins: " + sSentToOA + "<br>Budget Admins:" + sSentToBDA, false); } catch (Exception ex) { lblError.Text = DisplayMessage("Error: " + ex.Message, true); } }
protected void btnSendDueDateReminder_Click(object sender, EventArgs e) { var sSentToR = ""; var sSentToOA = ""; var sSentToBDA = ""; try { if (ddlLoads.SelectedIndex == 0) { lblError.Text = "Please select an active review from the combo box above."; } else { Admin.SendDueDateReminder(ddlLoads.SelectedItem.Value, txtLoadDate.Value, txtDueDate.Value, out sSentToR, out sSentToOA, out sSentToBDA); lblError.Text = DisplayMessage(lblError, "Reminder has been sent to: <br>Reviewers: " + sSentToR + "<br>Org Admins: " + sSentToOA + "<br>Budget Admins:" + sSentToBDA, false); //lblError.Text = DisplayMessage(lblError, "Reminder has been sent", false); } } catch (Exception ex) { lblError.Text = DisplayMessage(lblError, "Error: " + ex.Message, true); } }