<% if (Eval(art_avatar_url) != "") {%> <img alt="<%#Eval("name")%>" title="<%#Eval("name")%>" src='../img/avatars/<%#Eval("img_url")%>' style="width: 80px; height: 80px"> <%} else {%> <img alt="<%#Eval("name")%>" title="<%#Eval("name")%>" src="../img/blank.gif" style="width: 80px; height: 80px"> <%}%>
<img alt="<%#Eval("name")%>" title="<%#Eval("name")%>" src='<%#Eval("avatar_url") != "" ? "../img/avatars/"+ Eval("avatar_url") : "../img/blank.gif"%>' style="width: 80px; height: 80px">
<img alt="<%#Eval("name")%>" title="<%#Eval("name")%>" src='<%#Eval("art_avatar_url") != "" ? "images/"+ Eval("img_url") : "images/blank.gif"%>' style="width: 80px; height: 80px">
<img alt='<%#Eval("name")%>' title='<%#Eval("name")%>' src='<%# string.IsNullOrEmpty(Eval("art_avatar_url").ToString())?"images/blank.gif":"images/"+ Eval("img_url").ToString() %>' style="width: 80px; height: 80px">
<% if(Eval("img_url") != ""){%> some html goes here <%} else {%> some different html goes here <%}%>
public string GetAppropriateHTML() { string html = ""; if (Eval("img_url") != "") { html = "some html goes here"; } else { html = "some other html goes here" } return html; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)