private void showRosterEmail(int?id) { hfCommunication.Value = id.ToString(); CurrentGroup.LoadAttributes(); cbEmailSendToParents.Visible = CurrentGroup.GetAttributeValue("AllowEmailParents").AsBoolean(); pnlMain.Visible = false; pnlEmail.Visible = true; DisplayEmailRecipients(); }
protected void btnEmail_Click(object sender, EventArgs e) { tbBody.Text = ""; tbSubject.Text = ""; CurrentGroup.LoadAttributes(); cbEmailSendToParents.Visible = CurrentGroup.GetAttributeValue("AllowEmailParents").AsBoolean(); pnlMain.Visible = false; pnlEmail.Visible = true; DisplayEmailRecipients(); }
protected void btnSMS_Click(object sender, EventArgs e) { tbMessage.Text = ""; CurrentGroup.LoadAttributes(); cbSMSSendToParents.Visible = CurrentGroup.GetAttributeValue("AllowEmailParents").AsBoolean(); pnlMain.Visible = false; pnlSMS.Visible = true; DisplaySMSRecipients(); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "smsCharCount", smsScript, true); }
protected void btnEmail_Click(object sender, EventArgs e) { gMembers.SelectedKeys.Clear(); hfCommunication.Value = null; // If we have a CommandArgument, then we should only select one member. if (sender is LinkButton && !string.IsNullOrWhiteSpace((( LinkButton )sender).CommandArgument)) { hfCommunication.Value = (( LinkButton )sender).CommandArgument; gMembers.SelectedKeys.Add((( LinkButton )sender).CommandArgument.AsInteger()); } tbBody.Text = ""; tbSubject.Text = ""; CurrentGroup.LoadAttributes(); cbEmailSendToParents.Visible = CurrentGroup.GetAttributeValue("AllowEmailParents").AsBoolean(); pnlMain.Visible = false; pnlEmail.Visible = true; DisplayEmailRecipients(); }