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:
questo funziona correttamente.codice:If currentUser <> "Alberto" Then drpViewTutti.Attributes.CssStyle.Add("display", "none") End If
adesso devo aggiungere un altro utente, ed ho fatto così:
ed ho provato anche così:codice:If currentUser <> "Alberto" Or currentUser <> "matteo" Then drpViewTutti.Attributes.CssStyle.Add("display", "none") End If
ma non funzionano.codice:If currentUser <> "Alberto" OrElse currentUser <> "matteo" Then drpViewTutti.Attributes.CssStyle.Add("display", "none") End If
nel senso che non si entra mai nella if.
so che è una domanda stupida, ma ci sto sbattendo la testa da due ore.

Rispondi quotando


