0

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...

1
  • Try to put the code as it is in my answer and then somewhere in the Page_Load event add a DataBind() call Commented Oct 8, 2009 at 11:11

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Can you explain what you mean by databind? I get an error with that code alone saying The animations property doesn't allow child objects...
0

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()' />

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.