Repeater控件绑定问题
<asp:Repeater ID="repInfo" runat="server">
<HeaderTemplate>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#FFFFFF" class="table">
<tr class="TR_BG">
<td align="left" valign="middle" class="sys_topBg">帮助</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr class="TR_BG_list" onmouseover="overColor(this)" onmouseout="outColor(this)" ContentTypeStr='5' ContentID='<%# Eval("P_ID") %>'>
<td align="left" valign="middle"><a href="<%#((DataRowView)Container.DataItem)["P_EquHelp"]%>">帮助 </a></td>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
想让当读取P_EquHelp的值为空的时候让<a>的href属性为#,不为空的时候赋值为所读取的值,请高手帮忙
------解决方案--------------------
<a href='<%#string.IsNullOrEmpty(Eval("P_EquHelp").ToString())?"#":Eval("P_EquHelp")%>'>帮助 </a>