Este es un ejemplo probado de un UpdatePanelAnimationExtender de Ajax.
Cuando el UpdatePanel ha sido actualizado este ejemplo hace un fade out y luego un fade in al contenido de un tag DIV.
Te servirá de base para experimentar.
VerPostal.aspx
ASP:
-
<asp:ScriptManager id="ScriptManager1" runat="server"> </asp:ScriptManager>
-
<asp:UpdatePanel id="UpdatePanel1" runat="server">
-
<contenttemplate>
-
<DIV style="BACKGROUND-COLOR: silver">
-
<asp:Label id="Label1" runat="server" Text="Label"> </asp:Label>
-
<BR />
-
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"> </asp:Button>
-
<BR />
-
<BR />
-
<BR />
-
<BR />
-
<BR />
-
</DIV>
-
</contenttemplate>
-
</asp:UpdatePanel>
-
<cc1:UpdatePanelAnimationExtender id="UpdatePanelAnimationExtender1" runat="server"
-
TargetControlID="UpdatePanel1">
-
<animations>
-
<OnUpdated>
-
<Sequence>
-
<FadeOut Duration=".2" Fps="30" />
-
<FadeIn Duration=".2" Fps="30" />
-
</Sequence>
-
</OnUpdated>
-
</animations>
-
</cc1:UpdatePanelAnimationExtender>
VerPostal.aspx.vb
VB.NET:
-
Partial Class VerPostal
-
Inherits System.Web.UI.Page
-
-
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
-
Label1.Text = Now.ToString
-
End Sub
-
-
End Class
Más información:
http://ajax.asp.net/ajaxtoolkit/UpdatePanelAnimation/UpdatePanelAnimation.aspx
#1 by Jesus on 20 Julio 2010 - 15:28
disculpa a mi no me aparecen los eventos onclick y asi en el animation extender de ajax control toolkit me aparece solo
la seccion de animations pero no puedo poner esos eventos
me podrias decir a que se debe??
de antemano gracias
#2 by Pablo Viale on 20 Julio 2010 - 16:07
Es que el onclick no es un evento del UpdatePanelAnimationExtender, sino del botón, por eso no te sale ahí.
Supongo que estás usando Visual Web Developer o algo así? Si a lo que te refieres es al intellisense, entonces intenta registrar tu DLL en el GAC:
Sigue esta liga.
Saludos y suerte!