Exemple #1
0
        protected void CompleteUserRequest(string strApproved)
        {
            try
            {
                if (Request.QueryString["UserID"] != null)
                {
                    intUserID = Convert.ToInt32(Request.QueryString["UserID"]);
                }

                string strRtn = DataProxy.ApproveUser(intUserID, strApproved);
                GetUserRequests();
                GetSearchResults();
                GetCompletedAssessments();

                bool bSuccess = false;

                if (strApproved == "1")
                {
                    bSuccess = DataProxy.SendApprovedEmail(intUserID);
                }
            }

            catch (Exception ex)
            {
                lblError.Text = ex.Message;
            }
        }