protected void Page_Load(object sender, EventArgs e)
 {
     PDCATempUser                 = (PDCAUser)Session["PDCAUser"];
     this.lblWelcomeUser.Text     = "Welcome: " + PDCATempUser.UserFirstName + " " + PDCATempUser.UserLastName;
     this.lblWelcomeUser.Text    += " - " + PDCATempUser.UserRole;
     this.tcPDCAFieldList.Visible = (PDCATempUser.UserRole == "Administrator");
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     PDCATempUser = (PDCAUser)Session["PDCAUser"];
     if (!IsPostBack)
     {
         LoadGridData();
     }
 }
 protected void Session_Start(object sender, EventArgs e)
 {
     Session["EndpointList"]  = new Hashtable();
     Session["NetworkUserID"] = new object();
     Session["UserRole"]      = new object();
     Session["FirstName"]     = new object();
     Session["LastName"]      = new object();
     Session["PDCAUser"]      = new PDCAUser();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     PDCATempUser  = (PDCAUser)Session["PDCAUser"];
     strConnString = PDCATempUser.strConnectionstring;
     if (!IsPostBack)
     {
         LoadGridData();
     }
 }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     PDCATempUser = (PDCAUser)Session["PDCAUser"];
     if (IsPostBack)
     {
     }
     else
     {
         this.lblPDCATypeID.Text = Request.QueryString["PDCATypeID"];
         LoadData();
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            PDCATempUser        = (PDCAUser)Session["PDCAUser"];
            strConnectionstring = PDCATempUser.strConnectionstring;
            OpenConnection();
            if (!String.IsNullOrEmpty(Request.QueryString["PDCAID"]))
            {
                this.lblPDCAID.Text = Request.QueryString["PDCAID"];
            }
            else
            {
            }

            LoadData();
        }
        protected void btnVerifyName_Click(object sender, EventArgs e)
        {
            PDCAUser PDCATempUser1 = new PDCAUser();

            PDCATempUser1.VerifyUser(this.txtName.Text);
            this.lblUserName.Text = PDCATempUser1.UserFirstName + " " + PDCATempUser1.UserLastName;
            if (PDCATempUser1.PDCAUserGroupMember != "True")
            {
                this.lblError.Text   = "This person is not a member of the PDCAUsers Group and cannot be added until they are added to the Network User Group.";
                this.btnSave.Enabled = false;
            }
            else
            {
                this.btnSave.Enabled = true;
                this.lblError.Text   = "";
            }
        }