Solved

ASP.NET/VB: If 0 or >5

Posted on 2011-09-06
1
337 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:
adilkhan earned 500 total points
ID: 36491202
I think vb.net uses OR not ||
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

919 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now