shouldn't this work?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
i have a gridview with an image inside an item template. the imageUrl
property looks like this:

(Eval("Gender")=="Unknown")?"~/images/failed.png":"~/images/success.png"

for some reason it always evaluates false which isn't the case for all my
values. any ideas?

thanks,
rodchar
 
hey all,
i have a gridview with an image inside an item template. the imageUrl
property looks like this:

(Eval("Gender")=="Unknown")?"~/images/failed.png":"~/images/success.png"

for some reason it always evaluates false which isn't the case for all my
values. any ideas?

thanks,
rodchar

cast the eval to a string

((string)Eval("Gender"))==...
 
Back
Top