Design View ListView ASP.NET Logic

KingOzki

New Member
I am trying to input logic in the source view in Asp.Net ListView. The problem is that the program is writing on the screen false or true when executing "If (isItTrue(test))". Does anyone know how to solve this problem? \[code\] <%# test= Eval("testId")%> <% If (isItTrue(test)) Then %> <asp:Button ID="btnTest" runat="server" Text="Like" /> <% Else %> <asp:Label runat="server" Text="hello" </asp:Label> <% End If %>\[/code\]
 
Back
Top