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.
|
Rank: Newbie Groups: Member
Joined: 4/26/2010 Posts: 2 Points: 6
|
I posted this in the wrong forum. Please Move to ASPNetFlashVideo.
Thanks
|
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
|