AnimationExtender UserControl et paramètrage
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 :
Citation:
La propriété 'Animations' de 'ajaxToolkit:AnimationExtender' n'autorise pas des objets enfants.
Default.aspx:
Code:
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> |
infoBox.ascx :
Code:
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> |
J'ai fais pas mal de recherche et je n'ai pas encore trouvé la solution, donc je me tourne vers vous.
Merci d'avance.