Using Eval to play a flash video.
Trying to use Eval to play a flv from a database that is in a table, there can be multiple videos so I figured just list them out and have its path be defined.
<ItemTemplate>
<asp:HyperLink ID="FLAlink" runat="server" NavigateUrl='javascript:playFlash("<%# Eval("link") + "flv" %>");'><asp:Image ID="Image2" runat="server" ImageUrl="fla-button.png" /></asp:HyperLink>
</ItemTemplate>
Is so far what I got. Problem is that its not playing in the embed video section of my page. Not exactly sure what I'm missing. If you have any suggestions on how to make it better I will take t开发者_如何转开发hat too.
Your quotes are a bit messed up, not sure what you are going for exactly, but try this:
'javascript:playFlash("<%# "+Eval("link") + "flv %>");'
精彩评论