I need to send the actual control id that .NET generates for an UpdatePanel's div to a javascript function. How do I rewrite the ScriptAction line below to accomplish this?
<asp:UpdatePanel ID="update1" runat="server" UpdateMode="Conditional">
...
</asp:UpdatePanel>
<cc1:UpdatePanelAnimationExtender runat="server" TargetControlID="update1">
<Animations>
<OnUpdating>
<Parallel duration="0">
<ScriptAction Script="doSomething(**update1's ID**);" />
</Parallel>
</OnUpdating>
...
</Animations>
</cc1:UpdatePanelAnimationExtender>
EDIT:
I would like to have update1.UniqueId
be placed in doSomething
's parameters.
EDIT:
The following fails:
<ScriptAction Script="alert('<%= update1.ClientID %>');" />
With
Exception type: System.Web.HttpParseException
Exception message: The 'Animations' property of 'cc1:UpdatePanelAnimationExtender' does not allow child objects.