Cioe' questo ?Originariamente inviato da pietro09
Dim lt as New Literal
lt = DirectCast(lw.FindControl("somma_teorico_Literal0" ), Literal)
If lt IsNot Nothing Then
lt.Text = Me._subtotal_teorico(0).ToString
End if
If lt.Text = "0" Then lt.Text = ""
Io farei così:
codice:Dim lt as New Literal lt = DirectCast(lw.FindControl("somma_teorico_Literal0"), Literal) Dim testo as String = Me._subtotal_teorico(0).ToString If lt IsNot Nothing And Not testo="0" Then lt.Text = testo Else lt.Text = String.Empty End if
![]()

Rispondi quotando