public void ClearFormulario()
        {
            if (txtSubTitulo != null)
            {
                txtSubTitulo.Text = "";
            }
            if (txtSubTitulo2 != null)
            {
                txtSubTitulo2.Text = "";
            }
            if (fckDescripcion != null)
            {
                fckDescripcion.Text = "";
            }
            if (fckDescripcion2 != null)
            {
                fckDescripcion2.Text = "";
            }
            if (fckResumen != null)
            {
                fckResumen.Text = "";
            }
            if (txtImagen != null)
            {
                txtImagen.Text = "";
            }
            if (txtImagen2 != null)
            {
                txtImagen2.Text = "";
            }
            if (txtImagen3 != null)
            {
                txtImagen3.Text = "";
            }
            if (txtVideo != null)
            {
                txtVideo.Text = "";
            }
            if (txtVideo2 != null)
            {
                txtVideo2.Text = "";
            }
            if (txtVideo3 != null)
            {
                txtVideo3.Text = "";
            }
            if (txtDocumento != null)
            {
                txtDocumento.Text = "";
            }
            if (txtDocumento2 != null)
            {
                txtDocumento2.Text = "";
            }
            if (txtDocumento3 != null)
            {
                txtDocumento3.Text = "";
            }
            if (txtFecha != null)
            {
                txtFecha.Text = "";
            }
            if (txtFecha2 != null)
            {
                txtFecha2.Text = "";
            }

            if (drpTipoEnlace != null)
            {
                drpTipoEnlace.SelectedIndex = -1;
            }
            if (drpArticuloEnlace != null)
            {
                drpArticuloEnlace.SelectedIndex = -1;
            }
            if (txtURLEnlace != null)
            {
                txtURLEnlace.Text = "";
            }
            if (txtURLEstatica != null)
            {
                txtURLEstatica.Text = "";
            }
            if (drpEstilo != null)
            {
                drpEstilo.SelectedIndex = -1;
            }
            if (repParametro != null)
            {
                ParametroHelper.ClearRepeaterControl(repParametro);
            }

            if (chkEnPortada != null)
            {
                chkEnPortada.Checked = false;
            }

            //usuarios
            if (hdnUsuarioID != null)
            {
                hdnUsuarioID.Value = "";
            }
            if (rbtPersonaNatural != null)
            {
                rbtPersonaNatural.Checked = false;
            }
            if (rbtPersonaJuridica != null)
            {
                rbtPersonaJuridica.Checked = false;
            }
            if (ddlDni != null)
            {
                ddlDni.SelectedIndex = -1;
            }
            if (txtDni != null)
            {
                txtDni.Text = "";
            }
            if (txtNombre != null)
            {
                txtNombre.Text = "";
            }
            if (txtApellido != null)
            {
                txtApellido.Text = "";
            }
            if (drpPais != null)
            {
                drpPais.SelectedIndex = -1;
            }
            if (drpDepartamento != null)
            {
                drpDepartamento.SelectedIndex = -1;
            }
            if (txtDireccion != null)
            {
                txtDireccion.Text = "";
            }
            if (ddlTelefono != null)
            {
                ddlTelefono.SelectedIndex = -1;
            }
            if (txtTelefono != null)
            {
                txtTelefono.Text = "";
            }
            if (txtEmail != null)
            {
                txtEmail.Text = "";
            }
            if (txtContrasena != null)
            {
                txtContrasena.Text = "";
            }
            if (txtConfirmacion != null)
            {
                txtConfirmacion.Text = "";
            }
            if (drpProvincia != null)
            {
                drpProvincia.SelectedIndex = -1;
            }
            if (drpDistrito != null)
            {
                drpDistrito.SelectedIndex = -1;
            }
            if (txtReferencia != null)
            {
                txtReferencia.Text = "";
            }
            if (txtCiudad != null)
            {
                txtCiudad.Text = "";
            }
            if (txtCodigoPostal != null)
            {
                txtCodigoPostal.Text = "";
            }
            //productos
            if (txtCodigo != null)
            {
                txtCodigo.Text = "";
            }
            if (txtDescripcionModelo != null)
            {
                txtDescripcionModelo.Text = "";
            }
            if (fckDescripcionProducto != null)
            {
                fckDescripcionProducto.Text = "";
            }
            if (txtImagenProducto != null)
            {
                txtImagenProducto.Text = "";
            }
            if (txtImagen2Producto != null)
            {
                txtImagen2Producto.Text = "";
            }
            if (txtPrecio != null)
            {
                txtPrecio.Text = "";
            }
            if (txtNombreProducto != null)
            {
                txtNombreProducto.Text = "";
            }
            if (txtIdProducto != null)
            {
                txtIdProducto.Text = "";
            }
            if (txtProductoCategoria != null)
            {
                txtProductoCategoria.Text = "";
            }
            if (txtSOS != null)
            {
                txtSOS.Text = "";
            }

            //direccion entrega
            if (txtNombreSede != null)
            {
                txtNombreSede.Text = "";
            }
            if (txtDireccionEntrega != null)
            {
                txtDireccionEntrega.Text = "";
            }
            if (txtTelefono01Entrega != null)
            {
                txtTelefono01Entrega.Text = "";
            }
            if (txtTelefono02Entrega != null)
            {
                txtTelefono02Entrega.Text = "";
            }
            if (txtTelefono03Entrega != null)
            {
                txtTelefono03Entrega.Text = "";
            }
            if (txtTelefono04Entrega != null)
            {
                txtTelefono04Entrega.Text = "";
            }
        }
Ejemplo n.º 2
0
        public void ClearFormulario()
        {
            if (txtSubTitulo != null)
            {
                txtSubTitulo.Text = string.Empty;
            }
            if (txtSubTitulo2 != null)
            {
                txtSubTitulo2.Text = string.Empty;
            }
            if (fckDescripcion != null)
            {
                fckDescripcion.Text = string.Empty;
            }
            if (fckDescripcion2 != null)
            {
                fckDescripcion2.Text = string.Empty;
            }
            if (fckResumen != null)
            {
                fckResumen.Text = string.Empty;
            }
            if (txtImagen != null)
            {
                txtImagen.Text = string.Empty;
            }
            if (txtImagen2 != null)
            {
                txtImagen2.Text = string.Empty;
            }
            if (txtImagen3 != null)
            {
                txtImagen3.Text = string.Empty;
            }
            if (txtVideo != null)
            {
                txtVideo.Text = string.Empty;
            }
            if (txtVideo2 != null)
            {
                txtVideo2.Text = string.Empty;
            }
            if (txtVideo3 != null)
            {
                txtVideo3.Text = string.Empty;
            }
            if (txtDocumento != null)
            {
                txtDocumento.Text = string.Empty;
            }
            if (txtDocumento2 != null)
            {
                txtDocumento2.Text = string.Empty;
            }
            if (txtDocumento3 != null)
            {
                txtDocumento3.Text = string.Empty;
            }
            if (txtFecha != null)
            {
                txtFecha.Text = string.Empty;
            }
            if (txtFecha2 != null)
            {
                txtFecha2.Text = string.Empty;
            }

            if (drpTipoEnlace != null)
            {
                drpTipoEnlace.SelectedIndex = -1;
            }
            if (drpArticuloEnlace != null)
            {
                drpArticuloEnlace.SelectedIndex = -1;
            }
            if (drpMenuWebEnlace != null)
            {
                drpMenuWebEnlace.SelectedIndex = -1;
            }
            if (txtURLEnlace != null)
            {
                txtURLEnlace.Text = string.Empty;
            }
            if (txtURLEstatica != null)
            {
                txtURLEstatica.Text = string.Empty;
            }
            if (drpEstilo != null)
            {
                drpEstilo.SelectedIndex = -1;
            }
            if (repParametro != null)
            {
                ParametroHelper.ClearRepeaterControl(repParametro);
            }

            if (chkEnPortada != null)
            {
                chkEnPortada.Checked = false;
            }
        }