S
Shapper
Hello,
I have this code line inside an ASP.Net Repeater:
<a href='<%# DataBinder.Eval(Container.DataItem, "link") %>'><%=
readMore %></a>
What I need to do is:
1. Show readMore value if <%# DataBinder.Eval(Container.DataItem,
"link") %> is not empty.
2. Show nothing if <%# DataBinder.Eval(Container.DataItem, "link") %> is
empty.
In this moment it is showing all the time the value of readMore.
Or maybe just hide the <a> tag.
Is this possible?
Thanks,
Miguel
I have this code line inside an ASP.Net Repeater:
<a href='<%# DataBinder.Eval(Container.DataItem, "link") %>'><%=
readMore %></a>
What I need to do is:
1. Show readMore value if <%# DataBinder.Eval(Container.DataItem,
"link") %> is not empty.
2. Show nothing if <%# DataBinder.Eval(Container.DataItem, "link") %> is
empty.
In this moment it is showing all the time the value of readMore.
Or maybe just hide the <a> tag.
Is this possible?
Thanks,
Miguel