Exemplo n.º 1
0
    /// <summary>
    /// Page Load  Event
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        Title = "Monetize your Referrals";
        Customer_CustomerMaster objMaster = (Customer_CustomerMaster)Master;

        objMaster.SetPageView("AdvocateDashBoard");
    }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Title = "Open for Ideas";
            Customer_CustomerMaster objMaster = (Customer_CustomerMaster)this.Master;

            objMaster.SetPageView("OpenforIdeas");
            if (!IsPostBack)
            {
                if (Session["LastLoginTime"] != null && Session["LastLoginTime"].ToString().Trim() != "")
                {
                    spLastLogin.InnerText = "Last login: "******"LastLoginTime"].ToString()).ToString("MMMM dd, yyyy, hh:mm tt");
                }
                else
                {
                    divLastLogin.Visible = false;
                }
            }
        }
Exemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Title = "Frequently Asked Question";
        Customer_CustomerMaster objMaster = (Customer_CustomerMaster)Master;

        objMaster.SetPageView("AdvocateDashBoard");

        if (IsPostBack)
        {
            return;
        }
        if (Session["LastLoginTime"] != null && Session["LastLoginTime"].ToString().Trim() != "")
        {
            spLastLogin.InnerHtml = "Your last login time: " + Convert.ToDateTime(Session["LastLoginTime"].ToString()).ToString("MMMM dd, yyyy, hh:mm tt");
        }
        else
        {
            divLastLogin.Visible = false;
        }

        var marketingPartnerDal = new MarketingPartnerDAL();

        uc1.AdvocateView = !marketingPartnerDal.CheckExpressAdvocate((int)IoC.Resolve <ISessionContext>().UserSession.CurrentOrganizationRole.OrganizationRoleUserId);;
    }