Ejemplo n.º 1
0
    protected void btnSigloAño_Click(object sender, EventArgs e)
    {
        localhost.servicios localhost_servicios = new localhost.servicios();

        int año = Convert.ToInt32(Request.Form["txtAño"]);

        lblSiglo.Text = localhost_servicios.Siglo_de_un_año(año).ToString();
    }
Ejemplo n.º 2
0
    // ----Servicios Soap

    protected void btnCovnertir_Click(object sender, EventArgs e)
    {
        localhost.servicios localhost_servicios = new localhost.servicios();

        bool   convert = radCm.Checked;
        double valor   = Convert.ToDouble(Request.Form["txtValor"]);

        if (convert)
        {
            lblConvertido.Text = localhost_servicios.Centrimeto_a_pulgada(valor).ToString();
        }
        else
        {
            lblConvertido.Text = localhost_servicios.Pulgada_a_centimetro(valor).ToString();
        }
    }