示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Neu da tao CV Thi chi co update
            if ((Boolean)Context.Profile.GetPropertyValue("Employee.AllowCreateCV") == false)
            {
                lbtn_AdsCv.Visible = false;
            }

            try
            {
                MembershipUser mu = Membership.GetUser();
                //Username = mu.UserName;
                userId = mu.ProviderUserKey.ToString();
            }
            catch (NullReferenceException)
            {
                Response.Redirect("~/publicArea/errorpages/Error404.aspx");
            }
            facade = new BusinessFacade(myConn);
            List<BusinessLogic.CV.SaveJobs> sjList =  facade.GetSaveJobs(userId);
            SjCount = sjList.Count;

            Assembly ass = Assembly.Load("App_GlobalResources");
            ResourceManager rm = new ResourceManager("Resources.Resource", ass);

            Literal1.Text = rm.GetString("Welcome") + String.Format(" {0}!", Context.Profile.GetPropertyValue("Employee.FirstName").ToString());
        }