protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["login"] == null)
        {
            lblcartcount.Text = "0";
        }
        else
        {
            lblcartcount.Text = (Count.countcart(Convert.ToInt32(Session["login"])).ToString());
        }


        if (Session["USERNAME"] != null)
        {
            MakePayment master           = (MakePayment)Page.Master;
            Label       lblusernameshow  = (Label)master.FindControl("lblusernameshow");
            Label       lblusernameshow2 = (Label)master.FindControl("lblusernameshow2");
            Label       lblsignin        = (Label)master.FindControl("lblsignin");
            LinkButton  lbllogout        = (LinkButton)master.FindControl("lbllogout");
            lblusernameshow.Visible = true;
            lblsignin.Visible       = false;
            lbllogout.Visible       = true;

            lblusernameshow.Text  = "Hi" + " " + Session["USERNAME"];
            lblusernameshow2.Text = "Hi" + " " + Session["USERNAME"];
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string orderid;

        if (!IsPostBack)
        {
            //orderid = Request.QueryString[0];
            //lblorderid.Text = orderid;
        }

        if (Session["USERNAME"] != null)
        {
            MakePayment master          = (MakePayment)Page.Master;
            Label       lblusernameshow = (Label)master.FindControl("lblusernameshow");
            lblcartcount = (Label)master.FindControl("lblcartcount");
            Label      lblusernameshow2 = (Label)master.FindControl("lblusernameshow2");
            Label      lblsignin        = (Label)master.FindControl("lblsignin");
            LinkButton lbllogout        = (LinkButton)master.FindControl("lbllogout");
            lblusernameshow.Visible = true;
            lblsignin.Visible       = false;
            lbllogout.Visible       = true;

            lblusernameshow.Text  = "Hi" + " " + Session["USERNAME"];
            lblusernameshow2.Text = "Hi" + " " + Session["USERNAME"];
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["USERNAME"] != null)
        {
            MakePayment master           = (MakePayment)Page.Master;
            Label       lblusernameshow  = (Label)master.FindControl("lblusernameshow");
            Label       lblusernameshow2 = (Label)master.FindControl("lblusernameshow2");
            Label       lblsignin        = (Label)master.FindControl("lblsignin");
            LinkButton  lbllogout        = (LinkButton)master.FindControl("lbllogout");
            lblusernameshow.Visible = true;
            lblsignin.Visible       = false;
            lbllogout.Visible       = true;

            lblusernameshow.Text  = "Hi" + " " + Session["USERNAME"];
            lblusernameshow2.Text = "Hi" + " " + Session["USERNAME"];
        }
    }