private void SaveUser()
        {
            bool   success  = false;
            string username = tbUsername.Text.Trim();

            try
            {
                using (QCAstServiceClient client = new QCAstServiceClient())
                {
                    success = client.SaveUser(ddlProfiles.SelectedIndex, username, tbPassword.Text.Trim(),
                                              ddlClient.SelectedValue != "" ? int.Parse(ddlClient.SelectedValue) : (int?)null);
                }
                if (success)
                {
                    ClearTextAndListBoxes();
                    lblSuccess.Text = string.Format("User '{0}' has been successfully added.", username);
                }
                else
                {
                    lblAmendError.Text = string.Format("The website encountered and error saving User '{0}'",
                                                       tbUsername.Text);
                }
            }
            catch (Exception ex)
            {
                NotifyWebmasterOfError("Ast Billing", "Usermanagement", ex.ToString());
                lblAmendError.Text = "The website encountered a problem. The webmaster has been notified and will be attending to the problem.";
            }
        }