D
Darren Clark
I have a link button that i would like to be used if the value of the text is NOT 0...
So the code below will always make a linkbutton....
However if the value of "DataBinder.Eval(Container,"DataItem."+ JR.Core.Data.JobseekerData.FLD_SEARCH_MATCHES) " is 0 i do not want the the 0 to become a link.... I simply want to display it as text.
How can i do this?
<asp:LinkButton
CommandArgument='<%# DataBinder.Eval(Container,"DataItem."+ JR.Core.Data.JobseekerData.FLD_SEARCH_ID) +","+ DataBinder.Eval(Container,"DataItem."+ JR.Core.Data.JobseekerData.FLD_SEARCH_PROFILE_ID)%>'
CommandName='ProfileMatch'
id="ProfileMatch_Text" OnCommand="TextLinkClick" Runat=server CssClass="body_text">
<%# DataBinder.Eval(Container,"DataItem."+ JR.Core.Data.JobseekerData.FLD_SEARCH_MATCHES) %>
</asp:LinkButton>
So the code below will always make a linkbutton....
However if the value of "DataBinder.Eval(Container,"DataItem."+ JR.Core.Data.JobseekerData.FLD_SEARCH_MATCHES) " is 0 i do not want the the 0 to become a link.... I simply want to display it as text.
How can i do this?
<asp:LinkButton
CommandArgument='<%# DataBinder.Eval(Container,"DataItem."+ JR.Core.Data.JobseekerData.FLD_SEARCH_ID) +","+ DataBinder.Eval(Container,"DataItem."+ JR.Core.Data.JobseekerData.FLD_SEARCH_PROFILE_ID)%>'
CommandName='ProfileMatch'
id="ProfileMatch_Text" OnCommand="TextLinkClick" Runat=server CssClass="body_text">
<%# DataBinder.Eval(Container,"DataItem."+ JR.Core.Data.JobseekerData.FLD_SEARCH_MATCHES) %>
</asp:LinkButton>