Author: Donkies11 | Posted on: 12/22/2008 1:37:25 PM | Views : 277

I would like to change the following IF statement so that there are 4 potentials...

Right now it is checking for a semi colon and basing the display on whether it exsits or not.

However, there are 4 possibilities:



null

one item (no semi colon)

two items (one semi colon)

three items (two semi colons)
Could someone help me rewrite this statement?

Current statement:
 1 ' Setup MSDS link(s)
2 Dim linkA As HyperLink = CType(row.FindControl("uxMSDSLinkA"), HyperLink)
3 Dim linkB As HyperLink = CType(row.FindControl("uxMSDSLinkB"), HyperLink)
4 If product.MSDSFilename.Contains(";") Then
5 linkA.ImageUrl = "~/styles/images/icon_ms ...

Go to the complete details ...