-- 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
<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
Rbl.ClearSelection()
For Each item As ListItem In Rbl.Items
If item.Text.Contains(Valor) Then
item.Selected = True

View File

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

View File

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