Bonjour à tous,
J'ai un userControl contenant un ajaxToolkit:AnimationExtender
Je souhaiterai définir un paramètre de hauteur à mon animationExtender à partir d'un paramètre de l'userControl, mais lorsque j'essaye d’insérer la valeur de Height j'ai une exception du type :Default.aspx:La propriété 'Animations' de 'ajaxToolkit:AnimationExtender' n'autorise pas des objets enfants.
infoBox.ascx :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <uc:infoBox runat="server" ID="InfoBox1" Icon="/images/attention.png" CssClass="infoBox" Height="100"> <content> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p> </content> </uc:infoBox>
J'ai fais pas mal de recherche et je n'ai pas encore trouvé la solution, donc je me tourne vers vous.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 <ajaxToolkit:AnimationExtender id="MyExtender" runat="server" TargetControlID="mainInfoBox" Enabled="true"> <Animations> <OnLoad> <sequence> <Parallel Duration="0"> <Resize Height="0" Unit="px" /> <StyleAction Attribute="display" Value="block"/> <StyleAction Attribute="width" Value="100%"/> </Parallel> <Parallel Duration=".5" Fps="30"> <FadeIn /> <Resize Height="<%= Height%>" Unit="px" /> </Parallel> </sequence> </OnLoad> </Animations> </ajaxToolkit:AnimationExtender>
Merci d'avance.
Partager