Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((Session["UserId"] == null) && (Session["SuperAdmin"] == null))
            {
                Response.Redirect("../Login.aspx");
            }
            if (!IsPostBack)
            {
                LoadDay();
                LoadYear();
                LoadMemberSMSCategory();
                Message.Show = false;

                ddlDay.SelectedValue   = System.DateTime.Now.Day.ToString();
                ddlMonth.SelectedValue = System.DateTime.Now.Month.ToString();
                ddlYear.SelectedValue  = System.DateTime.Now.Year.ToString();

                BusinessLayer.Common.SMSTrigger objTrigger = new BusinessLayer.Common.SMSTrigger();
                Hidden1.Value = (objTrigger.IsMessageSentToday() == true) ? "1" : "0";

                //if (Hidden1.Value == "1")
                //    btnSentSMS.Style.Add("display", "none");
                //else
                //    btnSentSMS.Style.Add("display", "block");

                ddlDay.SelectedValue   = DateTime.Now.Day.ToString();
                ddlMonth.SelectedValue = DateTime.Now.Month.ToString();
                ddlYear.SelectedValue  = DateTime.Now.Year.ToString();

                BStrMssg();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if ((Session["UserId"] == null) && (Session["SuperAdmin"] == null))
     {
         Response.Redirect("../Login.aspx");
     }
     if (!IsPostBack)
     {
         Message.Show = false;
         BusinessLayer.Common.SMSTrigger objTrigger = new BusinessLayer.Common.SMSTrigger();
         Hidden1.Value = (objTrigger.IsMessageSentToday() == true) ? "1" : "0";
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((Session["UserId"] == null) && (Session["SuperAdmin"] == null))
            {
                Response.Redirect("../Login.aspx");
            }
            if (!IsPostBack)
            {
                Message.Show = false;
                LoadMemberSMSCategory();

                BusinessLayer.Common.SMSTrigger objTrigger = new BusinessLayer.Common.SMSTrigger();
                Hidden1.Value = (objTrigger.IsMessageSentToday() == true) ? "1" : "0";

                if (Hidden1.Value == "1")
                {
                    btnSentSMS.Style.Add("display", "none");
                }
                else
                {
                    btnSentSMS.Style.Add("display", "block");
                }
            }
        }