Mam problem s CollapsiblePanelExtender prvkom. Mam tento kod:
<%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<asp:ScriptManager ID="ScriptManager1" runat="server"/>
<div style="width :150px;">
<asp:Panel ID="HeadP" runat="server" BackColor="Blue" ForeColor="Red">
Tu som header....
</asp:Panel>
<asp:Panel ID="BodyP" runat="server">
Tu som Body. Bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
</asp:Panel>
<asp:CollapsiblePanelExtender
ID="CollapsiblePanelExtender1"
Collapsed="true"
ExpandControlID = "HeadP"
CollapseControlID = "HeadP"
TargetControlID = "BodyP"
runat="server">
</asp:CollapsiblePanelExtender>
</div>
</asp:Content>
po zobrazeni stranky panel "BodyP" automaticky skryje, ale po kliknuti na "HeadP" na neda zobrazit. Neviete mi prosim poradit kde robim chybu? Skusal som uz snad vsetko aj podla navodov na internete ale nefunguje nic, ani stiahnute priklady.
|