tags:

views:

133

answers:

1

I am using JW Player in an ASP.NET MVC application and I'm trying to pass file path from database.

param name="flashvars" value="file=<%ResolveUrl(item.VideoPath)%>&image=preview.jpg"

I get nothing for the file path. How can I do this? Thanks

+1  A: 

You need an equals sign after the %, like so:

param name="flashvars" value="file=<%=ResolveUrl(item.VideoPath)%>&image=preview.jpg"
ristonj
Thanks. Wow...I looked at that line a million times.