Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DAL.DALValorPassagem a = new DAL.DALValorPassagem();

            if (!IsPostBack)
            {
                try
                {
                    TextBox1.Text = a.SelectValorInteiro("Ceará Mirim");
                }
                catch { }
                try
                {
                    TextBox2.Text = a.SelectValorInteiro("Extremoz");
                }
                catch { }
                try
                {
                    TextBox3.Text = a.SelectValorInteiro("Natal");
                }
                catch { }
                try
                {
                    TextBox4.Text = a.SelectValorInteiro("Parnamirim");
                }
                catch { }
                try
                {
                    TextBox5.Text = a.SelectValorInteiro("São Gonçalo do Amarante");
                }
                catch { }
            }
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Label2.Text = "R$ " + a.SelectValor("Natal");
         Label3.Text = "R$ " + a.SelectValorInteiro("Natal");
         valorbase1  = double.Parse(a.SelectValor("Natal"));
         valorbase2  = double.Parse(a.SelectValorInteiro("Natal"));
     }
 }