473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

UpdatePanel Animation

I have a list of buttons with an update panel underneath. When you click one of the buttons the update panel will refresh with different content. I have this working fine but I want to make it look nice with some jQuery animation so when you click the button the update panel refreshes and the content slides down.

Any javascript that I attach to the buttons seems to fire before the update panel is refreshed.

What is the best way to achieve this? Should I use something other than an update panel?
Mar 26 '10 #1

✓ answered by Frinavale

I have no experience using JQuery but I plan on checking it out the first chance I get.

There is a free ASP.NET Ajax Control Toolkit available that has an UpdatePanelAnimationExtender which will let you specify animations for when the update panel is updating and when it is returning.



Please note that this ToolKit uses the Microsoft Ajax library...it's not JQuery.


This extender is a little weird from what I remember. I believe that the animation that you specify for when the request is sent to the server is played for all UpdatePanels. The reason for this is there is no way for you to determine which UpdatePanel is causing the asynchronous postback using the Micirosoft Ajax Library (which the toolkit is based upon).

Keep this in mind when you're developing your animations.

(I ended up tearing this apart once and figuring out a way around the problem...but the task was pretty messy, involved a lot of research and it also involved accessing private members of events that aren't meant to be accessed by outside code)

-Frinny

1 3338
Frinavale
9,735 Expert Mod 8TB
I have no experience using JQuery but I plan on checking it out the first chance I get.

There is a free ASP.NET Ajax Control Toolkit available that has an UpdatePanelAnimationExtender which will let you specify animations for when the update panel is updating and when it is returning.



Please note that this ToolKit uses the Microsoft Ajax library...it's not JQuery.


This extender is a little weird from what I remember. I believe that the animation that you specify for when the request is sent to the server is played for all UpdatePanels. The reason for this is there is no way for you to determine which UpdatePanel is causing the asynchronous postback using the Micirosoft Ajax Library (which the toolkit is based upon).

Keep this in mind when you're developing your animations.

(I ended up tearing this apart once and figuring out a way around the problem...but the task was pretty messy, involved a lot of research and it also involved accessing private members of events that aren't meant to be accessed by outside code)

-Frinny
Mar 26 '10 #2

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

Similar topics

2
by: marss | last post by:
Hello, I have a question concerning UpdatePanel. For example, I have two linkbuttons at the UpdatePanel. I want the Button1 linkbutton to update controls within panel (the TextBox1 control in...
2
by: brett | last post by:
I have an AJAX updatepanel in an aspx page. Inside the updatepanel is a placeholder control, which loads various ascx files. This all works fine. One of the ascx files also has an updatepanel in...
4
by: Rob Meade | last post by:
Hi all, Ok - this might sound kinda stupid - but I cant see how to do it... I've got an update panel which contains, on one horizontal line, a drop down list, then an image, then another drop...
1
Bob Ross
by: Bob Ross | last post by:
I have an updatepanel with a little animation in it and I want to trigger this when the user clicks the button in the loign control. But everytime I add a trigger of LoginControl - OnLoggingIn it...
2
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have...
3
by: JacekDr | last post by:
Hello, I've got the following problem: I want to add and remove dynamically controls to UpdatePanel. In my user control I have a button, but when I click it I get AsyncPostback and Event for...
1
by: abellix | last post by:
An updatepanel contains a datagrid, this datagrid has columns generated by code-behind: some columns should have async postback, others should have sync postback. Here a sample to reproduce the...
0
by: Jeff | last post by:
hey asp.net 3.5 I have 2 UpdatePanels in my webpage. This webpage has a GridView, which one of its column is a templatefield which again contain a UpdatePanel and a button... The other...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
0
by: imbirek8 | last post by:
Hi, I tried to user AnimationExtender in UpdatePanel and I had error. I read that it is not posible to use AnimationExtender in UpdatePanel. What should I use to have effect like that:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...

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.