M
Miguel Dias Moura
Hello,
i want to display the image "icon-yes.gif" if a certain condition is true or the image "icon-no.gif" if it's false.
I have this line:
<td><img runat="server" src='<%# "..image/" & IIF(dataSetPerson.FieldValue("Author", Container) = "Yes", "icon-yes.gif" "icon-no.gif" %>'></td>
I get this error
Compiler Error Message: BC30455: Argument not specified for parameter 'FalsePart' of 'Public Function IIf(Expression As Boolean, TruePart As Object, FalsePart As Object) As Object'.
Then i tryied to change the line to:
<td><img runat="server" src='<%# "..image/" & IIF(dataSetPerson.FieldValue("Author", Container) = "Yes", "icon-yes.gif", "icon-no.gif" %>'></td>
I keep having the same error.
Can somebody help me? I am using ASP.NET / VB.
Thank You,
Miguel
i want to display the image "icon-yes.gif" if a certain condition is true or the image "icon-no.gif" if it's false.
I have this line:
<td><img runat="server" src='<%# "..image/" & IIF(dataSetPerson.FieldValue("Author", Container) = "Yes", "icon-yes.gif" "icon-no.gif" %>'></td>
I get this error
Compiler Error Message: BC30455: Argument not specified for parameter 'FalsePart' of 'Public Function IIf(Expression As Boolean, TruePart As Object, FalsePart As Object) As Object'.
Then i tryied to change the line to:
<td><img runat="server" src='<%# "..image/" & IIF(dataSetPerson.FieldValue("Author", Container) = "Yes", "icon-yes.gif", "icon-no.gif" %>'></td>
I keep having the same error.
Can somebody help me? I am using ASP.NET / VB.
Thank You,
Miguel