[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

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

0
hankknight
Asked:
hankknight
1 Solution
 
Saqib KhanSenior DeveloperCommented:
I think vb.net uses OR not ||
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now