コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lblFullname.Text = inh.p_fullname;
            if (!IsPostBack && inh.p_UserID != null)
            {
                DataTable _dt = csql.getEmergencyDetails("SmartConcepcion", inh.p_UserID.Value);
                if (_dt.Rows.Count > 0)
                {
                    pnlEmergency.Visible = true;
                    lnk.CommandName      = _dt.Rows[0]["ID"].ToString();
                    lnk.ToolTip          = _dt.Rows[0]["referenceID"].ToString();
                }
                else
                {
                    pnlEmergency.Visible = false;
                }
            }
            if (inh.isAdmin())
            {
                lnkDashboard.Visible = true;
            }
            else
            {
                lnkDashboard.Visible = false;
            }

            loadProfilePicture();
        }