在使用它们的.aspx中:
 protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserLevel"] == null)
        { this.Login1.Visible=true;
            this.Welcomeuser1.Visible=false;
        }
        else if(Session["Userlevel"].ToString()=="User")
        {
            this.Login1.Visible = false;
            this.Welcomeuser1.Visible = true;
        }
    }