hankknight
asked on
VB ASP.NET: Block of code ONLY if odd
How can I apply this:
To this?
I want the output from the code above ONLY to be displayed for odd items.
<%# IIf ( Container.ItemIndex Mod 2 <> 0, "", "--- BLOCK OF CODE HERE ---")%>
To this?
<%#Container.DataItem("NAME")%>
/ <a href="<%=Session("WSDownloadAsset") %>assetid=<%#Container.DataItem("Asset_ID")%>&dtype=assetdownload&size=0">Download</a>
I want the output from the code above ONLY to be displayed for odd items.
Can you explain a little better? You only want the link to display for odd numbers??
ASKER
Correct, I only want it to display every other item.
Actually, the reason for my question is that I want to learn how to include blocks of code inside an if statement.
Actually, the reason for my question is that I want to learn how to include blocks of code inside an if statement.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.