H
HockeyFan
I have the following inside a repeater:
<ItemTemplate>
<b><%#Container.DataItem("TitleText")%></b><br />
<%#Container.DataItem("ParagraphText")%>
<br /><br />
</ItemTemplate>
if for some reason, the TitleText is blank or null I'd like to not have
the <br/> tag. In other words, I only want the <br/> tag if TitleText
has something in it.
Can I do this, and if so, how best to accomplish?
<ItemTemplate>
<b><%#Container.DataItem("TitleText")%></b><br />
<%#Container.DataItem("ParagraphText")%>
<br /><br />
</ItemTemplate>
if for some reason, the TitleText is blank or null I'd like to not have
the <br/> tag. In other words, I only want the <br/> tag if TitleText
has something in it.
Can I do this, and if so, how best to accomplish?