Option Strict On disallows late binding with IIf

Why do I get a option strict on disallows late binding with the following code below?

 <%#IIf(IsDBNull(Container.DataItem("APSEVENT")), "", "<img src=" & Container.DataItem("APSEVENT") & " alt="""" />")%>

APSEVENT is a varchar(50)


Who is Participating?
Bob LearnedConnect With a Mentor Commented:
Do you need to use Option Strict, because there is an awful lot of hoops that you need to jump through, that are not very useful in my humble opinion?

flukesterAuthor Commented:
No, I don't really have to. I found some comments online and tried some of the conversions, but couldn't get anything to work. I'm going to add a web.config at the app level and set option strict to false.
Bob LearnedCommented:
I can't remember the last time that I used Option Strict On.  I feel like it is a crutch that covers up for good code design.

All Courses

From novice to tech pro — start learning today.