Reputation: 52952
I could have sworn it was just <%= Something %>
However it doesnt seem to be working:
<cc1:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender1"
TargetControlID="pnlUpdatePeriodDetails" runat="server">
<Animations>
<OnUpdating>
<Parallel duration="0">
<ScriptAction Script="onUpdating('divLoadingImage', <%= divDetailsContent.ClientID %>);" />
<EnableAction AnimationTarget="btnInvoke" Enabled="false" />
</Parallel>
</OnUpdating>
<OnUpdated>
<Parallel duration="0">
<ScriptAction Script="onUpdated('divLoadingImage', <%=divDetailsContent.ClientID %>);" />
<EnableAction AnimationTarget="btnInvoke" Enabled="true" />
</Parallel>
</OnUpdated>
</Animations>
</cc1:UpdatePanelAnimationExtender>
I don't even get intellisense...
Upvotes: 0
Views: 202
Reputation: 354
maybe you can just define a javascript function first, then in the ScriptAction to call it.
<script type="text/javascript">
function update()
{
onUpdated('divLoadingImage', <%=divDetailsContent.ClientID %>);
}
</script>
<ScriptAction Script='update()' />
Upvotes: 0
Reputation: 84843
Is your problem the fact that <%= %> appears as it is in the output? In that case try something like this and see if it works:
<ScriptAction Script='<%# "onUpdating('divLoadingImage', '"
+ divDetailsContent.ClientID + "');" %>' />
This will need a DataBind on the control or page.
Upvotes: 1