我正在尝试使用Eval()
VB.NET 和 ASP.NET 绑定图像,但遇到了问题:
代码片段
<bri:ThumbViewer Id="Th1" runat="server"
ImageUrl='<%# Eval("Name", "~/SiteImages/ram/3/{0}") %>'
Height="100px"
Width="100px"
/>
我strImagePath
在代码隐藏中设置为:
strImagePath ="~/SiteImages/ram/3/"
我该如何更换:
~/SiteImages/ram/3/{0}
与变量strImagePath
?