<%@ Page Language="C#" CodeBehind="Server2.aspx.cs" Inherits="Templates.Server2" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Server - FindAllControls (Extension Method)</title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="idScriptManager" runat="server"></asp:ScriptManager> <asp:UpdatePanel ID="idUpdatePanel" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="idShowPrice" EventName="CheckedChanged" /> </Triggers> <ContentTemplate> <asp:CheckBox ID="idShowPrice" runat="server" Text="Show Price" Checked="true" AutoPostBack="true" /> <asp:DataList ID="idBookList" runat="server" DataSourceID="idBookData" CellPadding="4" CellSpacing="4"> <ItemStyle BorderWidth="1" /> <ItemTemplate> <asp:Panel runat="server" ID="idGenre"><%# XPath("genre") %></asp:Panel> <asp:Panel runat="server" ID="idTitle"><%# XPath("title") %></asp:Panel> <asp:Panel runat="server" ID="idAuthor">by <%# XPath("author") %></asp:Panel> <asp:Panel runat="server" ID="idPrice"><%# String.Format("{0Blush | :O .00}", Convert.ToDouble(XPath("price")) * 1.22) %> <%# XPath("price") %></asp:Panel> <button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">Simple collapsible</button> <div id="demo" class="collapse"> mycontrol </div> </ItemTemplate> </asp:DataList> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> </ContentTemplate> </asp:UpdatePanel> <asp:XmlDataSource ID="idBookData" runat="server" DataFile="books.xml"></asp:XmlDataSource> </div> </form> </body> </html> and now problem is whenever i want to hide demo(div) then nothing happen because of ID . i want to hide/show div which i select and which not can u some help me for that
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)