473,748 Members | 5,242 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ajax.NET UpdatePanelAnim ationExtender OnUpdating animation only fireing once

Frinavale
9,735 Recognized Expert Moderator Expert
I have a peculiar problem with an UpdatePanelAnim ationExtender wherein the animation for the OnUpdating event only fires the first time the UpdatePanel it target's performs a PostBack.

The animation is quite simple...it disables all of the buttons in the UpdatePanel when it is updating...and enables all the buttons within the UpdatePanel once it finishes it's postback.

I am dynamically creating the animation in my VB.NET code:
Expand|Select|Wrap|Line Numbers
  1. Private Function GenerateUpdatedPanelAnimation() As String
  2.         Dim str As New StringBuilder
  3.  
  4.         str.Append("<OnUpdating>" + vbLf)
  5.  
  6.         str.Append(DisableButtons)
  7.         str.Append("</OnUpdating>" + vbLf)
  8.  
  9.         str.Append(" <OnUpdated>" + vbLf)
  10.  
  11.         str.Append(EnableButtons())
  12.         str.Append("</OnUpdated>" + vbLf)
  13.  
  14.         Return str.ToString
  15.  
  16.     End Function
  17.  Private Function EnableButtons() As String
  18.         Dim str As New StringBuilder
  19.         str.Append("    <Parallel>" + vbLf)
  20.         str.Append("       <EnableAction AnimationTarget=""" + BTN_MyFirstButton.ClientID + """ Enabled=""" + "false""" + " />")
  21.         str.Append("       <EnableAction AnimationTarget=""" + BTN_MySecondButton.ClientID + """ Enabled=""" + "false""" + " />")
  22.         str.Append("       <EnableAction AnimationTarget=""" + BTN_MyThridButton.ClientID + """ Enabled=""" + "false""" + " />")
  23.         str.Append("       <EnableAction AnimationTarget=""" + BTN_MyFourthButton.ClientID + """ Enabled=""" + "false""" + " />")
  24.         str.Append("       <EnableAction AnimationTarget=""" + BTN_Refresh.ClientID + """ Enabled=""" + "false""" + " />")
  25.         str.Append("       <EnableAction AnimationTarget=""" + BTN_Exit.ClientID + """ Enabled=""" + "false""" + " />")
  26.  
  27.         str.Append("      </Parallel>" + vbLf)
  28.  
  29.         Return str.ToString
  30.     End Function
  31.  
  32. Private Function DisableButtons() As String
  33.        Dim str As New StringBuilder
  34.         str.Append("    <Parallel>" + vbLf)
  35.         str.Append("       <EnableAction AnimationTarget=""" + BTN_MyFirstButton.ClientID + """ Enabled=""" + "true""" + " />")
  36.         str.Append("       <EnableAction AnimationTarget=""" + BTN_MySecondButton.ClientID + """ Enabled=""" + "true""" + " />")
  37.         str.Append("       <EnableAction AnimationTarget=""" + BTN_MyThridButton.ClientID + """ Enabled=""" + "true""" + " />")
  38.         str.Append("       <EnableAction AnimationTarget=""" + BTN_MyFourthButton.ClientID + """ Enabled=""" + "true""" + " />")
  39.         str.Append("       <EnableAction AnimationTarget=""" + BTN_Refresh.ClientID + """ Enabled=""" + "true""" + " />")
  40.         str.Append("       <EnableAction AnimationTarget=""" + BTN_Exit.ClientID + """ Enabled=""" + "true""" + " />")
  41.         str.Append("      </Parallel>" + vbLf)
  42.  
  43.         Return str.ToString
  44.     End Function
The animation will fire the first time the UpdatePanel updates. But will not fire again.

I'm quite baffled by this.

This same logic is used to all the disable buttons within a custom web user control and it fires ever time without fail. These web user controls are in the UpdatePanel with the buttons and their UpdatePanelAnim ationExtender animations fire properly every time.

I'm open to suggestions.

Thanks

-Frinny
Oct 10 '07 #1
0 5322

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1854
by: vachacz | last post by:
hi i'm struggling with integration of a js class aimed for ajax handling with fireing actions from the class. here's my code sample: function AjaxLibLoad(httpActionParam, targetLayerParam){ this.targetLayer = targetLayerParam; this.httpAction = httpActionParam; this.httpRequest = this.httpRequestInstance(); this.load(); };
9
4854
by: dougloj | last post by:
Hi. I have an ASP.NET application written in C#. In part of my application, I want to use JavaScript OnClick event function to update a textbox with a string generated asynchronously on the server. I have pretty much figured out two ways to this. One way involves AJAX. The other way involves using cookies. I think AJAX is awesome, but what if the user's browser blocks ActiveX controls? On the other hand what if the browser blocks...
1
5300
by: Victor | last post by:
Hi guys I tried to use UpdatePanelAnimationExtender in my login form. I want to hide my asp login control after user click the login button. My problem is if the user input the wrong username or password. I want the login control to be display again so that the user can correct their input. but everytime the user have the wrong input. The login control still invisible. And I got the js error said: "Sys.ArgumentUndefinedException: Value...
0
1239
by: LamSoft | last post by:
By Double clicking the object detailview, it will auto make a sub-procedure called XXXXX_Selecting, however I want a sub-procedure to be called while the detailview is being updated, so that i add a onUpdating="xxxxx" inside the <asp:DetailViewand make a sub in the cs file, but while try to run the project, it has the following error, is there any other method to make a onupdating sub rather than i have to write the code myself, thanks. ...
2
1434
by: JC | last post by:
I have a form with a few UpdatePanels and each has an associated UpdatePanelAnimationExtender which causes fade-in and fade-out. In addition 2 of the animations disable the 2 buttons which trigger them in the Updating event and then enable them again in the Updated event. I was surprised to see that all the animations occur when any AJAX postback occurs. All the UpdatePanelAnimationExtenders have their UpdatePanel ID as their...
2
1201
by: Smith | last post by:
Hello, My aspx page redirects to a page on an external web site. The external page is .ashx. I usually display an animation( using update panel and scriptmanager), prompting user that some data is being retreived. Is there any way i can stop displying my animation when the remote page has completed? Thanks PS
5
9236
Frinavale
by: Frinavale | last post by:
I have a slight problem with a Tab Control that I've developed for an application. Once sent to the browser it runs via JavaScript. The JavaScript is dynamically generated by my .NET code. Everything works fine. I've recently been adding "animations" to my web application using Ajax. The animation "Fades" the page in once it is finished loading (without this fading effect the page load is very choppy). My Tab Control requires some...
0
1178
by: ravindraverma | last post by:
Hi All, How Do We Use Ajax Animation Control In Asp.net 2005 With Vb Datagrid On Mouse Over Event Like Tooltip, In Animation Control We Can Show Person Detail Information On Mouse Over And Hide On Mouse Out In Selection Of Paticular Column?
0
1522
by: Guramrit Singh | last post by:
Hi everybody, I have a problem with UpdatePanelAnimationExtender. I have multiple update panels each with a UpdatePanelAnimationExtender associated with it. I want all my update panels mode to be conditional(i don't want to set it to always). When 1 update panel updates the OnUpdating fires on all update panels! Thanx in advance... Guramrit Singh
0
8987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9534
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.