protected void DataStructFile_DataBinding(object sender, System.EventArgs e)
        {
            Consulta c = new Consulta();
            try
            {

                DropDownListASP.llenarDropDownList(c.consultarEstadoParametrizacion(), "value", "text", ref this.ddlEstado);
                DropDownListASP.selectIndexByValue(ref this.ddlEstado, Convert.ToString(((System.Data.DataRowView)DataItem).Row.ItemArray[3]));
            }
            catch (Exception ex)
            {
                Logger.generarLogError(ex.Message, new System.Diagnostics.StackFrame(true), ex);
            }
        }
Exemplo n.º 2
0
 private void cargarEstados()
 {
     Consulta c = new Consulta();
     try
     {
         DropDownListASP.llenarDropDownList(c.consultarEstadoParametrizacion(), "value", "text", ref this.ddlEstado);
         if (!(DataItem is Telerik.Web.UI.GridInsertionObject))
         {
             DropDownListASP.selectIndexByValue(ref this.ddlEstado, Convert.ToString(((System.Data.DataRowView)DataItem).Row.ItemArray[3]));
         }
         else
         {
             DropDownListASP.selectIndexByValue(ref this.ddlEstado, "1");
         }
     }
     catch (Exception ex)
     {
         Logger.generarLogError(ex.Message, new System.Diagnostics.StackFrame(true), ex);
     }
 }
Exemplo n.º 3
0
 private void cargarComboEstado()
 {
     Consulta c = new Consulta();
     try
     {
         DropDownListASP.llenarDropDownList(c.consultarEstadoParametrizacion(), "value", "text", ref this.ddlEstado);
         DropDownListASP.AddItemToDropDownList(ref this.ddlEstado, "SELECCIONE>>", "-1", true);
         DropDownListASP.selectIndexByValue(ref this.ddlEstado, "-1");
     }
     catch (Exception ex)
     {
         Logger.generarLogError(ex.Message, new System.Diagnostics.StackFrame(true), ex);
         this.RadWindowManager1.RadAlert(Utilities.errorMessage(), 400, 200, Utilities.windowTitle(TypeMessage.error_message),
             null, Utilities.pathImageMessage(TypeMessage.error_message));
     }
 }