-- mejora en extensión

This commit is contained in:
2023-01-31 23:59:03 -07:00
parent c18da04b2c
commit e75e462991
3 changed files with 15 additions and 11 deletions

View File

@@ -3474,8 +3474,9 @@ Namespace Extensiones
End Sub End Sub
<Runtime.CompilerServices.Extension()> <Runtime.CompilerServices.Extension()>
Public Sub SelectedTextLikeIfExist(ByRef Rbl As DropDownList, ByRef Valor As String) Public Sub SelectedTextLikeIfExist(Rbl As DropDownList, Valor As String)
If Valor <> "" Then If Valor <> "" Then
Rbl.ClearSelection()
For Each item As ListItem In Rbl.Items For Each item As ListItem In Rbl.Items
If item.Text.Contains(Valor) Then If item.Text.Contains(Valor) Then
item.Selected = True item.Selected = True

View File

@@ -684,6 +684,9 @@
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button> <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
</div> </div>
</ContentTemplate> </ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="LnkDescargaFormato" />
</Triggers>
</asp:UpdatePanel> </asp:UpdatePanel>
</div> </div>
</div> </div>

View File

@@ -2928,18 +2928,18 @@ Partial Class Ventas_ClientesAbonar
End Sub End Sub
Public Sub SelectedTextLikeIfExist(ByRef Rbl As RadioButtonList, Value As String) 'Public Sub SelectedTextLikeIfExist(ByRef Rbl As RadioButtonList, Value As String)
Try ' Try
For Each item As ListItem In Rbl.Items ' For Each item As ListItem In Rbl.Items
If item.Value.Contains(Value) Then ' If item.Value.Contains(Value) Then
item.Selected = True ' item.Selected = True
End If ' End If
Next ' Next
Catch ex As Exception ' Catch ex As Exception
End Try ' End Try
End Sub 'End Sub
Protected Sub LnkDescargaFormato_Click(sender As Object, e As EventArgs) Protected Sub LnkDescargaFormato_Click(sender As Object, e As EventArgs)