コード例 #1
0
        protected void cargarTipo()
        {
            try
            {
                tipo.Items.Clear();
                tipo.Items.Add(new ListItem("Seleccione", "Seleccione"));
                tipo.DataSource    = report.ConsultarTipoServicio();
                tipo.DataTextField = "tipo";

                tipo.DataValueField = "tipo";
                tipo.DataBind();
            }
            catch (Exception ex)
            {
                textError.InnerHtml = ex.Message;
                Alerta.CssClass     = "alert alert-error";
                Alerta.Visible      = true;
            }
        }