I'm not able to get this working and I can't figure out why.
<ItemTemplate>
<% if (Field(((DataRowView)(Container.DataItem)), "Video File") != "") { %>
<a href='upload/images/<%# Field(((DataRowView)(Container.DataItem)), "Video File")%>'>Download Link</a>
<% } else { %>
<embed height="14" width="661" name="plugin" src="<%# ContentUploadURL%>/<%# Field(((DataRowView)(Container.DataItem)), "Audio File")%>" type="audio/mpeg" autostart="false" />
<% } %>
</ItemTemplate>
It seems simple enough, but I just get this error:
Compiler Error Message: CS0103: The name 'Container' does not exist in the current context
I've been at this all day and I'm a total newbie working on a CMS in asp. I don't really want to learn ASP, just to get this one thing working.
If anyone could point me in the right direction, I'd be very very grateful.
Thanks!