viernes, 5 de diciembre de 2008

deshabilitar boton de imagen y "grisarlo" en asp.net

Private Sub deshabilitarBoton(ByVal img As ImageButton, ByVal habilitado As Boolean)
img.Enabled = habilitado
img.Style.Clear()
If Not habilitado Then
img.Style.Add("filter", "alpha(opacity=30)")
End If
End Sub

No hay comentarios:

Publicar un comentario