Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

ASP.NET/VB: If 0 or >5

I use this ASP.NET VB code to do something if ItemIndex equals  0:
<%# IIf ( Container.ItemIndex = 0, "<strong>", "")%> 

Open in new window


I want it to do something if ItemIndex equals  0 OR if ItemIndex is larger than 5.

This does NOT work:

<%# IIf ( Container.ItemIndex = 0 || Container.ItemIndex > 5, "<strong>", "")%> 

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Saqib Khan
Saqib Khan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial