コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session["Role"] != null)
                {
                    Session["Gridindex"] = 0;
                    string role = Session["Role"].ToString();
                    NextBtn.Visible = false;
                    BindMasterGrid();
                    BindChildGrid();
                    Session["Page" + 0] = true;

                    // pop up panel..
                    AppraisalDetails app     = dbmanager.GetAppraisalDetails();
                    string           details = app.AppraisalDescription;
                    lblDetails.Text = details;
                    this.ModalPopupExtender.Show();
                }
                else
                {
                    Response.Redirect("accessdenied.aspx");
                }
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session["Role"] != null)
                {
                    string role = Session["Role"].ToString();
                    if (role != "Admin")
                    {
                        Response.Redirect("accessdenied.aspx");
                    }
                }

                try
                {
                    AppraisalDetails apprasial = dbmanager.GetAppraisalDetails();
                    if (apprasial != null)
                    {
                        Session["AppraisalID"] = apprasial.AppraisalID;
                        tbxDetails.Text        = Server.HtmlDecode(apprasial.AppraisalDescription);
                    }
                }
                catch (Exception ex)
                {}
            }
        }
コード例 #3
0
        protected void ViewBtn_Click(object sender, EventArgs e)
        {
            AppraisalDetails app     = dbmanager.GetAppraisalDetails();
            string           details = app.AppraisalDescription;

            lblDetails.Text = details;
            this.ModalPopupExtender.Show();
        }