Dynamic rich media component for ASP.Net Flash, Video, Audio, FlashVideo and ToolTip / Balloon Help controls for C# and VB.Net
Welcome Guest Search | Active Topics | Members | Log In | Register

ASPNETFlash only displays HTMLAlternativeTemplate after LoadControl AJAX call Options · View
BDC
Posted: Monday, April 26, 2010 4:55:02 PM
Rank: Newbie
Groups: Member

Joined: 4/26/2010
Posts: 2
Points: 6
Hello,

I have a very basic project.
1 MasterPage
1 Derived ASPX page
1 UserControl

The MasterPage has 2 updatepanels one with a placeholder control inside and an asyncpostback trigger pointing to a link button . The second containing a link button.
The usercontrol only contains the ASPNetFlash control.
The ASPX page is an empty default page derived from site.master.

When a user clicks the LinkButton the following code behind for the Masterpage linkbutton control is executed:
var control = LoadControl("VideoControl.ascx");
placeholder.controls.add(control);

Page updates the VideoControl is loaded and displayes the HTMLAlternativeTemplate, which is a basic get Adobe Flash link.

The video URL is good. If i drop the usercontrol onto the default page it loads correctly.

Any help would be greatly appreciated.
BDC
Posted: Monday, April 26, 2010 5:17:44 PM
Rank: Newbie
Groups: Member

Joined: 4/26/2010
Posts: 2
Points: 6
I posted this in the wrong forum. Please Move to ASPNetFlashVideo.

Thanks
Dave
Posted: Wednesday, May 05, 2010 10:04:23 AM
Rank: Administration
Groups: Administration

Joined: 7/20/2007
Posts: 305
Points: -2,485
Location: Primarily in New York, USA
Try placing the control into the page initially, so that it runs through the entire ASP.NET life-cycle, and rather than add it in on request, start it off with Visible = false, and toggle it's visibility via code-behind.

If that doesn't work let me know and we'll figure this out.

Thanks!

-Dave
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.