Solved

ASP.NET/VB: If 0 or >5

Posted on 2011-09-06
1
341 Views
Last Modified: 2012-05-12
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
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Saqib Khan earned 500 total points
ID: 36491202
I think vb.net uses OR not ||
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP.NET Calendar Control 5 54
Data Analysis 7 59
Variable 'id' is used before it has been assigned a value 29 45
vb.net make textbox not visible after 1 minute elapsed 6 27
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question