public static int ExtraerValorComoEntero(DropDownList lista) { if (lista.SelectedIndex < 0) { return(0); } return(Texto.ConvertirTextoEnEntero(lista.SelectedValue)); }
public static int ExtraerValorComoEntero(HiddenField campoOculto) { return(Texto.ConvertirTextoEnEntero(campoOculto.Value)); }
public static int ExtraerValorComoEntero(Label etiqueta) { return(Texto.ConvertirTextoEnEntero(etiqueta.Text)); }
public static int ExtraerValorComoEntero(TextBox cajaTexto) { return(Texto.ConvertirTextoEnEntero(cajaTexto.Text.Trim().Replace(".", string.Empty))); }