Using IF with Eval Asp.net

Asked

Viewed 153 times

0

<%# Eval("filiacao").ToString() == "nada consta" ? "nada consta" : "+infos" %>

I want "+Infos" to be a link.

Any idea?

  • 1

    <a href="link">+infos</a> does not serve?

  • can’t use it like this.

  • And why don’t you?

  • because it expects an answer of the expression and that is not an answer I believe. I only know that I can not use, because I tried in several ways to use this suggestion.

  • This is a simple but difficult question. I may have to change the shape.

  • 1

    <%# Eval("filiacao").ToString() == "nada consta" ? "nada consta" : "<a href='link'>+infos</a>" %> so it doesn’t work?

  • worst q worked like this. waleu people by the tips. The apostrophe made all the difference.

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.