String was not recognized as a valid Boolean when added to visible attribute
问题 I'm trying to add a true or false Visible attribute to my listview itemtemplate table. What I did is that I have a hiddenfield that is set at page load so that I can make a specific column visible or not. This is my hiddenfield and column: Hidden Field <asp:HiddenField ID="uoHiddenFieldPriority" runat="server" Value="false" /> Td column <td class="leftAligned" visible='<%# (Convert.ToBoolean(uoHiddenFieldPriority.Value)) %>' > some Text </td> This is my code in the backend: int visibility = 0