예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (TheSessions.StudentID == null)
        {
            Label1.Visible = false;
            StName.Visible = false;

            Button14.Visible = false;
        }
        else
        {
            Students st = new Students();
            Button14.Visible = true;
            Label1.Visible = true;
            StName.Visible = true;
            StName.Text = new Codes().StudentName(Convert.ToInt64(TheSessions.StudentID));
            string s = st.GetGender();
            if (s.Trim() == "1")
            {
                GenderImg.ImageUrl = "Man.png";
                GenderImg.ToolTip = "ذكر";
            }
            else
            {
                GenderImg.ImageUrl = "Woman.png";
                GenderImg.ToolTip = "انثى";
            }

        }
    }