Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataSet Source = (DataSet)Cache["MyCache"];

            if (Source == null)
            {
                ServiceReference1.WebService1SoapClient client = new ServiceReference1.WebService1SoapClient();
                Source           = client.GetCustomers();
                Cache["MyCache"] = Source;
                Label1.Text      = "DATASET CREATED FROM TABLE";
            }
            else
            {
                Label1.Text = "DATASET RETRIEVED FROM TABLE";
            }
            GridView1.DataSource = Source;
            GridView1.DataBind();
        }
Ejemplo n.º 2
0
 protected void Button4_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebService1SoapClient cl4 = new ServiceReference1.WebService1SoapClient();
     Label4.Text = cl4.AddMultiplication(Convert.ToInt32(TextBox7.Text), Convert.ToInt32(TextBox8.Text)).ToString();
 }
Ejemplo n.º 3
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebService1SoapClient cl3 = new ServiceReference1.WebService1SoapClient();
     Label3.Text = cl3.AddDivision(Convert.ToInt32(TextBox5.Text), Convert.ToInt32(TextBox6.Text)).ToString();
 }
Ejemplo n.º 4
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebService1SoapClient cl2 = new ServiceReference1.WebService1SoapClient();
     Label2.Text = cl2.AddSubtraction(Convert.ToInt32(TextBox3.Text), Convert.ToInt32(TextBox4.Text)).ToString();
 }
Ejemplo n.º 5
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebService1SoapClient cl = new ServiceReference1.WebService1SoapClient();
     Label1.Text = cl.Add(Convert.ToInt32(TextBox1.Text), Convert.ToInt32(TextBox2.Text)).ToString();
 }