<ajaxToolkit:AnimationExtender id="Ani" runat="server" TargetControlID="TextBox1"> <Animations> <OnClick> <Resize width="400px" duration="0.3" fps="10" /> </OnClick> </Animations></ajaxToolkit:AnimationExtender><asp:TextBox ID="TextBox1" Width="200px" TextMode="MultiLine" Rows="6" runat="server" />Thanks /J
Hi,
Yeah , a conditional animation would be the way to go about this .
Try this Mark-Up ..
<
scriptlanguage="javascript">var expandCount = 1;var expandMaxCount = 1;function ShouldIExpand()
{
var shouldExpand =false;if ( expandCount <= expandMaxCount )
shouldExpand =
true;expandCount++;
return shouldExpand ;}
</script>
<OnClick>
<ConditionConditionScript="ShouldIExpand()">
<Resize width="400px" duration="0.3" fps="10" /></Condition> </OnClick>Hope this helps.
If it resolves the issue , please mark my reply as the answer
exactly what i had in mind, it works! Thanks
No comments:
Post a Comment