[CollapsiblePanelExtender] problème affichage
Bonjour @tous,
je voulais tester le CollapsiblePanelExtender d'Ajax et j'ai un petit soucis: rien ne se collapse/decollapse: le contrôle est statique.
J'ai pris plusieurs exemples de base sur le net et à chaque fois même chose.
On dirai que j'ai un problème de conf plus que de codage mais je suis bloqué...
Je vous mets mon code si quelqu'un à des idées...
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebAppAjax._Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Page sans titre</title>
</head>
<body>
<form id="form1" runat="server">
<%-- ScriptManager control manages client script for AJAX enabled ASP.NET pages.This enables partial-page rendering and Web-service calls.You have to used this if you want to use ajax control--%>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<%-- use the CollapsiblePanelExtender and we set the all properties given here and also use some standerd control here--%>
<cc1:CollapsiblePanelExtender
ID="panelC"
runat="server"
TargetControlID="commentPanel"
ExpandControlID="TitlePanel"
CollapseControlID="TitlePanel"
Collapsed="true"
ImageControlID="Image1"
ExpandedImage="~/Images/collapse.png"
CollapsedImage="~/Images/expand.jpg"
SuppressPostBack="True"
ScrollContents="true" >
</cc1:CollapsiblePanelExtender>
<asp:Panel id="commentPanel" runat="server">
bla bla bla bla bla
bla bla bla bla bla
bla bla bla bla bla
bla bla bla bla bla
</asp:Panel>
<asp:Panel ID="TitlePanel" runat="server">
<asp:Label ID="Label1" runat="server">(Commentaires...)</asp:Label>
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/expand.jpg"/>
</asp:Panel>
</form>
</body>
</html> |
Ps: j'ai l'impression que j'ai le même soucis avec tous les controles Ajax... y-a-t-il un module pour activer ces fonctionnalités dans les param internet ou autres?
Merci d'avance pour vos réponses,
Nikalkal