Exemple #1
0
        private void CargarDatos()
        {
            ServiceReference1.Service1Client servicio = new ServiceReference1.Service1Client();

            XmlSerializer aux    = new XmlSerializer(typeof(List <Caso14.Negocio.Reportes>));
            StringReader  lector = new StringReader(servicio.ListarReportes());

            GridView2.DataSource = (List <Caso14.Negocio.Reportes>)aux.Deserialize(lector);
            GridView2.DataBind();
        }