ciao!
sarò una capra io, ma noh riesco a fare ad ottenere quello mi serve in una if con or.
solo in vb.net ho sempre sti problemi.
in pratica:
codice:
If currentUser <> "Alberto" Then
drpViewTutti.Attributes.CssStyle.Add("display", "none")
End If
questo funziona correttamente.
adesso devo aggiungere un altro utente, ed ho fatto così:
codice:
If currentUser <> "Alberto" Or currentUser <> "matteo" Then
drpViewTutti.Attributes.CssStyle.Add("display", "none")
End If
ed ho provato anche così:
codice:
If currentUser <> "Alberto" OrElse currentUser <> "matteo" Then
drpViewTutti.Attributes.CssStyle.Add("display", "none")
End If
ma non funzionano.
nel senso che non si entra mai nella if.
so che è una domanda stupida, ma ci sto sbattendo la testa da due ore.