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

UpdatePanel with aspnetflash : how to ? Options · View
icm63
Posted: Monday, July 05, 2010 12:21:14 AM
Rank: Newbie
Groups: Member

Joined: 5/24/2010
Posts: 4
Points: 12
Location: NZ
asp.net 2.0 (MSVS 2005) Ajax enabled site

I have aspnetflash on a user control. The usercontrol goes on the aspx page.

The swf files load up from a directory into a listbox, on item selected in listbox the swf runs in the flash control.

I have this working perfectly (without updatepanel), but know I wish to put the user control between an updatepanel on the aspx page, and when I do, I get the alternative view of '<HTMLAlternativeTemplate>' when I select the swf item to run .

My usercontrol code named 'Manage_Media'
Code:

<table cellpadding="0" cellspacing="0" style=" border:solid 1px black;background-color:#EFF6FF;"  class="Area">
<tr>
<td width="610px" height="410px">
<ASPNetFlash:Flash
ID="Flash1"
runat="server"
DebugMode="false"
PlayerVersionAutoDetect="true"
AllowFullScreen="true"
PausedAtStart="true"
Alignment="Center"
Width="600px"
Height="400px"
AllowScriptAccess="SameDomain"
ShowFullMenu="true"
HeightAutoDetect="false"
WidthAutoDetect="false"
BorderStyle="Inset"
  MovieURL="~/MediaRep/xMakeSelection.swf"
Quality="Best">
<HTMLAlternativeTemplate>
<asp:ImageButton ID="ImageButtonGetFlashPlayer" runat="server"
PostBackUrl="http://www.adobe.com/go/getflashplayer"
ImageUrl="http://www.aspnetflash.com/images/get_flash_player.gif" />
</HTMLAlternativeTemplate>
</ASPNetFlash:Flash>
</td>
<td width="325px" height="auto" align="left" valign="top" >
<obout:ListBox runat="server" ID="ListBox1" Width="325"  AutoPostBack="true"
Height="390" EnableViewState="true"    SelectionMode="Single">
<ItemTemplate>
<span><%#LBItemColor(Eval("Desc"), Eval("Type"))%></span>
</ItemTemplate>
</obout:ListBox>
</td>
</tr>
</table>


My aspx code that failes
Code:

<asp:UpdatePanel ID="uppanVideo" runat="server" UpdateMode="Conditional"  >
<ContentTemplate>
<uc1:Manage_Media ID="Manage_Media1"  runat="server" />
</ContentTemplate>
</asp:UpdatePanel>


Any ideas..

NOTE: I ran this in IE7 and FireFox the result was the same
Jake
Posted: Tuesday, July 06, 2010 3:34:38 AM
Rank: Administration
Groups: Administration

Joined: 7/26/2007
Posts: 676
Points: 1,728
Location: USA
Hi

ASP.net Flash has AJAX aware and Non AJAX aware versions.

Did you install the AJAX option during your install process?

http://www.aspnetmedia.com
icm63
Posted: Tuesday, July 06, 2010 8:41:42 PM
Rank: Newbie
Groups: Member

Joined: 5/24/2010
Posts: 4
Points: 12
Location: NZ
Silly me , that could be it.

Sorry I posted this question in the wrong forum zone
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.