Пример #1
0
 public void Limpiar()
 {
     FechaTexBox.Text = DateTime.Now.ToString();
     MontoTexBox.Text = "";
     CuentaDropDownList.ClearSelection();
     MiembroDropDownList.ClearSelection();
     TipoIngresoDropDownList.ClearSelection();
     ObservacionTexBox.Text          = "";
     RequiredFieldValidator1.IsValid = true;
     RequiredFieldValidator2.IsValid = true;
     RequiredFieldValidator3.IsValid = true;
 }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                FechaTexBox.Text = DateTime.Now.ToString();

                MiembroDropDownList.DataSource     = Miembro.Listado(" * ", "1=1", "");
                MiembroDropDownList.DataTextField  = "Nombre";
                MiembroDropDownList.DataValueField = "MiembroId";
                MiembroDropDownList.DataBind();

                CuentaDropDownList.DataSource     = Cuenta.Listado(" * ", "1=1", "");
                CuentaDropDownList.DataTextField  = "Descripcion";
                CuentaDropDownList.DataValueField = "CuentaId";
                CuentaDropDownList.DataBind();

                TipoIngresoDropDownList.DataSource     = TipodeIngreso.Listado(" * ", "1=1", "");
                TipoIngresoDropDownList.DataTextField  = "Descripcion";
                TipoIngresoDropDownList.DataValueField = "TipoIngresoId";
                TipoIngresoDropDownList.DataBind();
            }
        }