Home > DeveloperSection > Forums > How do I hide particular label in nested listview
syeda s
syeda s

Total Post:1

Posted on    August-14-2016 4:06 AM

 .NET ASP.Net 

 0 Reply(s)
 138  View(s)
Rate this:
listview is the parent control in that i took the child control for popup.my problem is that with child control i want to hide the particluar label so that the user when clicked on popup the details should be showned which admin wanted to show.please help me out..i saw in internet that we can do with event bubbling like nested listview inside linkbutton..but i want nested listview inside label to b hidden.

What I have tried:

<tbody id="divcomp" runat="server">
<asp:ListView ID="ddlcomputers" runat="server" DataKeyNames="Cid" OnItemCommand="ddlcomputers_ItemCommand" OnItemDeleted="ddlcomputers_ItemDeleted">

<asp:Label ID="lblComputerNamee" runat="server" Text='<%#Eval("ComputerName") %>'>
<img class="md-trigger" data-modal='<%#Eval("ComputerName") %>' align="absmiddle" src="../html/images/info.png" runat="server" width="24" height="24" alt="" />
<asp:Label ID="lblCid" runat="server" Text='<%#Eval("Cid") %>' Visible="false">
<asp:ListView ID="ListView1" runat="server">

<%#Eval("ComputerType") %> <asp:ImageButton ID="imgedit" runat="server" ImageUrl="~/html/images/edit.png" Width="24" CommandName="Edit" Height="24" alt="" /> <asp:ImageButton ID="imgrepair" runat="server" ImageUrl="~/html/images/repair.png" Width="24" Height="24" CommandName="Repair" alt="" /> <asp:ImageButton ID="imgdel" runat="server" ImageUrl="~/@@@html/images/Dead.jpg" Width="24" Height="24" alt="" CommandName="Dead" OnClientClick="return confirm('Do you want to Dead this Computer?');" /> <td runat="server" visible="false">
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/html/images/delete.png" Width="24" Height="24" alt="" CommandName="Delete" OnClientClick="return confirm('Do you want to delete this Computer?');" />
<asp:Label ID="LblOther" runat="server" Text='<%#Eval("Status") %>'>

Don't want to miss updates? Please click the below button!

Follow MindStick