-- mejora en extensión
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user