Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ReportDocument reporte = new ReportDocument();

            ServiceReference1.WebService1SoapClient ws = new ServiceReference1.WebService1SoapClient();
            if ()
            {
                reporte.Load(Context.Server.MapPath("~/reporte.rpt"));
                reporte.SetDataSource(ws.MostrarDatos());
                CrystalReportViewer1.ReportSource = reporte;
            }
        }
        protected void Enviar(object sender, EventArgs e)
        {
            int    matricula = Convert.ToInt32(TextBox1.Text);
            String nombre    = TextBox2.Text;
            int    edad      = Convert.ToInt32(TextBox3.Text);

            ServiceReference1.WebService1SoapClient ws = new ServiceReference1.WebService1SoapClient();
            if (ws.InsertarDatos(matricula, nombre, edad))
            {
                Response.Redirect("~/WebForm1.aspx");
            }
            else
            {
                Response.Write("Error no se pudo insertar la informacion");
            }
        }
Beispiel #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ServiceReference1.WebService1SoapClient ws = new ServiceReference1.WebService1SoapClient();
     GridView1.DataSource = ws.MostrarDatos();
     GridView1.DataBind();
 }