Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        var ps = new Performances();
        List<Performances> list = ps.GetPerformances();

        GridView_Performance.DataSource = list;
        GridView_Performance.DataBind();
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserName"] != null)
        {
            Control control = header.FindControl("login");
            Control logindiv = control.FindControl("ControlLogin");
            Control welcomediv = control.FindControl("ControlUserInfo");
            Label labelName = (Label)welcomediv.FindControl("lblWelcome");
            labelName.Text = "Welcome " + (string)Session["UserName"] + "!";
            logindiv.Visible = false;
            welcomediv.Visible = true;
        }

        Performances ps = new Performances();
        List<Performances> list = ps.GetPerformances();

        GridView_Performance.DataSource = list;
        GridView_Performance.DataBind();
    }