Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //LinkButton5.Visible = false;

            if (Session["pusername"] != null)
            {
                string storsess = Session["pusername"].ToString();

                CLLogins clls = new CLLogins();

                //this is recruiter
                if (clls.checkusertype(storsess, 1) == 1)
                {
                    LinkButton1.Text     = storsess + "'s cpanel";
                    LinkButton2.Enabled  = false;
                    LinkButton2.CssClass = "Styleag1";
                }

                //this is a normal user
                else
                {
                    LinkButton2.Text     = storsess + "'s cpanel";
                    LinkButton1.Enabled  = false;
                    LinkButton1.CssClass = "Styleag1";
                }

                //check recruiters
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //activate the account
            if (Request.QueryString["usertype"] != null)
            {
                int    usertype   = Convert.ToInt16(Request.QueryString["usertype"]);
                string username   = Request.QueryString["username"];
                string activation = Request.QueryString["activationid"];

                CLLogins cllog = new CLLogins();
                cllog.activate_acc(usertype, username, activation);
            }
        }