我试图在一个中继器中同时显示图像和视频。为此,我在我的 aspx 页面中使用 if else 。但这不是返回任何值。谁能帮我解决这个问题?
<% if('<%#Eval("UploadType").%> == "V"')
{
<embed src='<%# Eval("FilePath") %>'
type="application/x-shockwave-flash"
allowscriptaccess="always"
allowfullscreen="true" width="150" height="150"></embed>
}
else
{
<asp:ImageButton ID = "ibtnHolder" runat = "server"
Width = "130" Height = "130"
ImageUrl = '<%# Eval("FilePath") %>' />
} %>