//Busca do CEP
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        BuscadoCorreio.AtendeClienteClient
            webServiceCorreios = new BuscadoCorreio.AtendeClienteClient("AtendeClientePort");

        try
        {
            var infoCep = webServiceCorreios.consultaCEP(txtCep.Text);

            txtCidade.Text = infoCep.cidade;
            txtBairro.Text = infoCep.bairro;
            txtRua.Text    = infoCep.end;
        }
        catch (Exception)
        {
            txtCidade.Text = "";
            txtBairro.Text = "";
            txtRua.Text    = "";
        }
    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        //Busca no site dos Correios
        BuscadoCorreio.AtendeClienteClient
            webServiceCorreios = new BuscadoCorreio.AtendeClienteClient("AtendeClientePort");

        try
        {
            //Caso exista
            var infoCep = webServiceCorreios.consultaCEP(txtCEPProf.Text);

            txtCidProf.Text    = infoCep.cidade;
            txtBairroProf.Text = infoCep.bairro;
            txtRuaProf.Text    = infoCep.end;
        }
        catch (Exception)
        {
            //Caso não exista
            txtCidProf.Text    = "";
            txtBairroProf.Text = "";
            txtRuaProf.Text    = "";
        }
    }