Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            btnAceptar.Attributes["onclick"] = "return Confirmacion();";
            Label11.Text = Session["Uni"].ToString();
            Label12.Text = Session["Cedula"].ToString();
            Label16.Text = DateTime.Now.ToShortDateString();
            GridView2.Visible = false;
            LinkButton1.Visible = false;
            try
            {
                DataSet1TableAdapters.ClasesTableAdapter adapter = new DataSet1TableAdapters.ClasesTableAdapter();
                DataSet1TableAdapters.Clientes1TableAdapter adapter2 = new DataSet1TableAdapters.Clientes1TableAdapter();

                Label13.Text = cbxClase.SelectedValue;
                DataRow row1 = adapter.ObtenerDatos(Label11.Text, Convert.ToInt32(cbxClase.SelectedValue)).Rows[0];

                Label15.Text = row1["Dia"].ToString();
                Label20.Text = cbxClase.SelectedItem.ToString();
                Label24.Text = row1["Hora"].ToString();

                DataRow row2 = adapter2.GetData(cbxAlumna.SelectedValue).Rows[0];
                Label18.Text = row1["Nivel"].ToString();
            }
            catch(Exception ex)
            {
            }
        }
Ejemplo n.º 2
0
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Label13.Text = cbxClase.SelectedValue;
            DataSet1TableAdapters.ClasesTableAdapter adapter = new DataSet1TableAdapters.ClasesTableAdapter();
            DataRow row1 = adapter.ObtenerDatos(Label11.Text, Convert.ToInt32(cbxClase.SelectedValue)).Rows[0];

            Label15.Text = row1["Dia"].ToString();
            Label20.Text = cbxClase.SelectedItem.ToString();
            Label24.Text = row1["Hora"].ToString();
        }