protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    using (QCAstServiceClient client = new QCAstServiceClient())
                    {
                        int  idUser = int.Parse(Session["IdUser"].ToString());
                        User user   = client.GetUserFromId(idUser);

                        if (user.IdProfile != 4 & user.IdProfile != 3)
                        {
                            Response.Redirect("ErrorPage.aspx?Error=NotAuthorised", false);
                        }
                        else
                        {
                            ddlPrefContactMethod.DataSource = client.GetAllContactMethods();
                            ddlPrefContactMethod.DataBind();
                            lbSearchedClients.DataSource = client.GetAllClients("All", "");
                            lbSearchedClients.DataBind();
                            ddlPrefContactMethod.Items.Insert(0, new ListItem("Please select..", "0"));
                            trButtons.Visible      = false;
                            ibEditClient.Enabled   = false;
                            ibDeleteClient.Enabled = false;
                        }
                    }
                }
                catch (Exception ex)
                {
                    NotifyWebmasterOfError("Billing", "Client Management Page Load", ex.ToString());
                    Response.Redirect("ErrorPage.aspx?Error=GeneralError", true);
                }
            }
        }