protected void Page_Load(object sender, EventArgs e) { GRUPOTDA_BL = new SCE_GRUPOTDA_BL((pe.oechsle.Entity.Usuario)Session["DatosCnSistema"]); TIENDA_BL = new SCE_TIENDA_BL((pe.oechsle.Entity.Usuario)Session["DatosCnSistema"]); txtDescripcion.Attributes.Add("onKeyPress", "doClick('" + btnGuardarGrupo.ClientID + "',event)"); btnAñadirTienda.OnClientClick = "return IsSelected();"; btnGuardarGrupo.OnClientClick = "return IsValid();"; if (!Page.IsPostBack) { Session["Formulario"] = "ParGrupoTiendas.aspx"; hidId.Value = ""; Session["dtTiendas"] = CrearDataTable(); LoadData(); } }
protected void Page_Load(object sender, EventArgs e) { TIENDA_BL = new SCE_TIENDA_BL((pe.oechsle.Entity.Usuario)Session["DatosCnSistema"]); txtId.Attributes.Add("onKeyPress", "doClick('" + btnGuardar.ClientID + "',event)"); txtDescripcion.Attributes.Add("onKeyPress", "doClick('" + btnGuardar.ClientID + "',event)"); txtNomTienda.Attributes.Add("onkeypress", String.Format("javascript:return SoloEnterosLetrasYEspacios(event)")); btnAgregar.OnClientClick = "return Agregar();"; btnGuardar.OnClientClick = "return Limpiar();"; btnCancelar.OnClientClick = "return Limpiar();"; btnGuardar.OnClientClick = "return IsValid();"; Util.SetEnterButton(txtNomTienda, btnBuscarT); if (!Page.IsPostBack) { Session["Formulario"] = "ParTiendas.aspx"; LoadData(); } }