Posted on: 3/23/2015 4:49:04 PM | Views : 610

I my ASP.NET 4.5 WebForms app, I have a <asp:ListView> . Above it I have a LinkButton to Show/Hide the LinkView. But somw how the ListView's Visible state is not changed only, it's always visible. Here's my code :
<asp:LinkButton runat="server" Visible="true" ID="collapseFloorList" Text="Hide" OnClick="collapseFloorList_Click"></asp:LinkButton> <asp:Panel ID="floorPanel" runat="server" > <asp:ListView runat="server" ID="floorList" ItemType="VincitoreCRMApplication.Models.FloorPattern" UpdateMethod="floorList_UpdateItem" DeleteMethod="floorList_DeleteItem" SelectMethod="floorList_GetData" DataKeyNames="FloorPatternId" Visible='<%# ShowFloorList %>' > In the Code Behind, I have a Property in PAge named ShowFloorList :
public ...

Go to the complete details ...