Пример #1
0
        protected void lbtnSendSMS_Click(object sender, EventArgs e)
        {
            selectedMobiles = string.Empty;

            if (this.ddlSetSendSMS.SelectedValue.Equals("0"))
            {
                foreach (GridViewRow row in grvData.Rows)
                {
                    if (((CheckBox)(row.Cells[0].FindControl("cbRow"))).Checked)
                    {
                        selectedMobiles += row.Cells[2].Text + "\n";
                    }
                }
            }
            else if (this.ddlSetSendSMS.SelectedValue.Equals("1"))
            {
                foreach (MemberInfo item in this.bllMember.GetList <MemberInfo>(this.ViewState["strWhere"].ToString()))
                {
                    selectedMobiles += item.Mobile + "\n";
                }
            }

            Session[Comm.SessionKey.PageRedirect]  = "/Member/MemberList.aspx";
            Session[Comm.SessionKey.PageCacheName] = "cache" + bllMember.GetGUID(TransacType.CacheGet);
            Comm.DataCache.SetCache(Session[Comm.SessionKey.PageCacheName].ToString(), selectedMobiles);
            Response.Redirect("/SMS/Send.aspx");
        }