protected void imgbtnFindByMsn_Click(object sender, ImageClickEventArgs e)
        {
            GetContactPerson contactPerson = new GetContactPerson();

            GetAddressStatus status = GetContactPerson.GetAddressByEmail(txtMsnId.Text.Trim(), txtMsnPd.Text.Trim(), out list);

            switch (status)
            {
            case GetAddressStatus.Success:
                //  listResult.Items.Clear();
                //oreach (Person tmp in list)
                //{
                //string text="Email:" + tmp.Email + " Name:" + tmp.Name;
                // this.listResult.Items.Add(new ListItem(text, tmp.Email));
                //}
                //listResult.Visible = true;
                this.listResult.DataSource = list;
                this.listResult.DataBind();
                divShow.Visible = true;
                lbtError.Text   = "";
                break;

            case GetAddressStatus.UidOrPwdError:
                lbtError.Text = "MSN用户名或密码错误!";
                break;

            case GetAddressStatus.NetError:
                lbtError.Text = "网络错误!";
                break;

            case GetAddressStatus.NoAddress:
                lbtError.Text = "MSN地址不存在!";
                break;

            case GetAddressStatus.MailError:
                lbtError.Text = "邮箱地址格式不正确!";
                break;

            default:
                break;
            }
        }
        protected void imgFindEmail_Click(object sender, ImageClickEventArgs e)
        {
            StringBuilder build = new StringBuilder();

            GetAddressStatus status = GetContactPerson.GetAddressByEmail(txtName.Text.Trim() + selMailType.Value.Trim(), txtPassword.Text.Trim(), null, out list);

            switch (status)
            {
            case GetAddressStatus.Success:
                this.listResult.DataSource = list;
                this.listResult.DataBind();
                divShow.Visible = true;
                lbtError.Text   = "";
                break;

            case GetAddressStatus.UidOrPwdError:
                lbtError.Text = "邮箱用户名或密码错误!";
                break;

            case GetAddressStatus.NetError:
                lbtError.Text = "网络错误!";
                break;

            case GetAddressStatus.NoAddress:
                lbtError.Text = "邮箱地址不存在!";
                break;

            case GetAddressStatus.MailError:
                lbtError.Text = "邮箱地址格式不正确!";
                break;

            default:

                break;
            }
        }