Solved

ASP.NET/VB: If 0 or >5

Posted on 2011-09-06
1
339 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
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 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