Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["user_logged_in"] != null)
         {
             //enabling logout button
             Site1 m = (Site1)Master;
             m.show_name_and_logout();
             HttpCookie user_new = Request.Cookies["user_new"];
             m.set_name(Request.QueryString["username"].ToString() + " | " + user_new["user_type"]);
         }
         else
         {
             Response.Redirect("login.aspx");
         }
         marks.Items.Add(new ListItem("0.5", "0.5"));
         marks.Items.Add(new ListItem("1", "1"));
         marks.Items.Add(new ListItem("1.5", "1.5"));
         marks.Items.Add(new ListItem("2", "2"));
         marks.Items.Add(new ListItem("2.5", "2.5"));
         marks.Items.Add(new ListItem("3", "3"));
         marks.Items.Add(new ListItem("3.5", "3.5"));
         marks.Items.Add(new ListItem("4", "4"));
         marks.Items.Add(new ListItem("4.5", "4.5"));
         marks.Items.Add(new ListItem("5", "5"));
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["user_logged_in"] != null)
                {
                    //enabling logout button
                    Site1 m = (Site1)Master;
                    m.show_name_and_logout();
                    m.set_name(Request.QueryString["username"].ToString());
                }
                else
                {
                    Response.Redirect("login.aspx");
                }

                branch_new.Items.Add(new ListItem("Aeronautical Engineering", "AU"));
                branch_new.Items.Add(new ListItem("Automobile Engineering", "AM"));
                branch_new.Items.Add(new ListItem("Biotechnology Engineering", "BT"));
                branch_new.Items.Add(new ListItem("Biomedical Engineering", "BM"));
                branch_new.Items.Add(new ListItem("Chemical Engineering", "CH"));
                branch_new.Items.Add(new ListItem("Civil Engineering", "CV"));
                branch_new.Items.Add(new ListItem("Computer Science Engineering", "CSE"));
                branch_new.Items.Add(new ListItem("Computer and Communication Engineering", "CCE"));
                branch_new.Items.Add(new ListItem("Electrical Engineering", "EEE"));
                branch_new.Items.Add(new ListItem("Electronics Engineering", "EC"));
                branch_new.Items.Add(new ListItem("Mechatronics", "MT"));
                branch_new.Items.Add(new ListItem("Mechanical Engineering", "ME"));
                branch_new.Items.Add(new ListItem("Information Technology", "IT"));
                branch_new.Items.Add(new ListItem("Instrumentation and Control", "ICE"));
                branch_new.Items.Add(new ListItem("Industrial Production", "IP"));
                branch_new.Items.Add(new ListItem("Print and Media Engineering", "PM"));
            }
        }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["user_logged_in"] != null)
         {
             //enabling logout button
             Site1 m = (Site1)Master;
             m.show_name_and_logout();
             HttpCookie user_new = Request.Cookies["user_new"];
             m.set_name(Request.QueryString["username"].ToString() + " | " + user_new["user_type"]);
         }
         else
         {
             Response.Redirect("login.aspx");
         }
     }
 }
Esempio n. 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                faculty_type.Items.Add(new ListItem("Administrator", "Administrator"));
                faculty_type.Items.Add(new ListItem("Coordinator", "Coordinator"));
                faculty_type.Items.Add(new ListItem("Faculty", "Faculty"));

                if (Session["user_logged_in"] != null)
                {
                    //enabling logout button
                    Site1 m = (Site1)Master;
                    m.show_name_and_logout();
                    HttpCookie user_new = Request.Cookies["user_new"];
                    m.set_name(Request.QueryString["username"].ToString() + " | " + user_new["user_type"]);
                }
                else
                {
                    Response.Redirect("login.aspx");
                }
            }
        }