G
Guest
Hi,
I have the following item template in a datalist:
<asp:LinkButton id="lnkAction" runat="server" CommandName="Action"
cssClass="TabMenu">
<%# Container.DataItem("Title") %>
</asp:LinkButton>
This is working fine until I was asked to made this template conditional
based on
the content of <%# Container.DataItem("Title") %>. Say if it is "A" or "B"
or "C", the template will be a LinkButton, every thing else will be a Label.
I don't know how to do that.
Please help !
I have the following item template in a datalist:
<asp:LinkButton id="lnkAction" runat="server" CommandName="Action"
cssClass="TabMenu">
<%# Container.DataItem("Title") %>
</asp:LinkButton>
This is working fine until I was asked to made this template conditional
based on
the content of <%# Container.DataItem("Title") %>. Say if it is "A" or "B"
or "C", the template will be a LinkButton, every thing else will be a Label.
I don't know how to do that.
Please help !