开发者

Using Eval to play a flash video.

开发者 https://www.devze.com 2023-04-02 17:30 出处:网络
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.

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 %>");'
0

精彩评论

暂无评论...
验证码 换一张
取 消