Hi guys. Been messing with for a while and figured I would see what I am messing. I have a user control that wires up some popups depending on the browser type. Long story short, for IE6, I want add a MPE WITH animation at runtime so I am doing it all
at the server side.
I can create the MPE without issue. But when I try to add animation it get the error:
"Animation on TargetControlID="btnThumbnail" uses property AjaxControlToolkit.ModalPopupExtender.OnShowing that does not exist or cannot be set"
If I remove the line setting the Animations string it works fine. I cant find documention on it anywhere. This, btw, is the same technique I use with create AnimationExtenders and that works fine. For example, this works fine:
BUT an extender will not work in this case since I am actually trying to add animation to a MPE. I tried doing literals and it didnt work. Tried creating an AjaxControlToolkit.Animation object but could get very far with it since there isnt much documention.
aesalazar
Member
40 Points
16 Posts
Add Animation to modalpopupextender created in Code-Behind
Feb 29, 2012 03:12 PM|LINK
Hi guys. Been messing with for a while and figured I would see what I am messing. I have a user control that wires up some popups depending on the browser type. Long story short, for IE6, I want add a MPE WITH animation at runtime so I am doing it all at the server side.
I can create the MPE without issue. But when I try to add animation it get the error:
"Animation on TargetControlID="btnThumbnail" uses property AjaxControlToolkit.ModalPopupExtender.OnShowing that does not exist or cannot be set"
Here is what my code looks like:
//Add the modal popup AjaxControlToolkit.ModalPopupExtender mpe = new AjaxControlToolkit.ModalPopupExtender() { ID = "mpePopup", TargetControlID = btnThumbnail.ID, PopupControlID = panMain.ID, OkControlID = imgClose.ID, BackgroundCssClass = "modalBackgroundIE6", Animations = "<OnShowing><ScriptAction Script='showOverflow(false);' /></OnShowing>" }; this.Controls.Add(mpe);If I remove the line setting the Animations string it works fine. I cant find documention on it anywhere. This, btw, is the same technique I use with create AnimationExtenders and that works fine. For example, this works fine:
BUT an extender will not work in this case since I am actually trying to add animation to a MPE. I tried doing literals and it didnt work. Tried creating an AjaxControlToolkit.Animation object but could get very far with it since there isnt much documention.
Thanks for any help.
Ernie
Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: Add Animation to modalpopupextender created in Code-Behind
Mar 02, 2012 06:44 AM|LINK
Hi,
I am afraid you can't do that directly. But you could do that like this: http://forums.asp.net/p/1318051/2624063.aspx#2624063.
Feedback to us
Develop and promote your apps in Windows Store