Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在使用中继器来显示我的照片,但我看不到照片。我当前显示的代码行是。
<a class="fancybox" rel="group" href="'<%# String.Format("Photos/thumbs/" + DataBinder.Eval(Container.DataItem, "OrgPhotoName")) %>'">
照片/拇指指向解决方案表示层内的文件夹。我希望使用数据绑定器将两者结合起来并显示在页面上。有人可以阐明一点。谢谢。
尝试改变这个
href="'<%# String.Format("Photos/thumbs/" + DataBinder.Eval(Container.DataItem, "OrgPhotoName")) %>'"
对此
href='Photos/thumbs/<%# DataBinder.Eval(Container.DataItem, "OrgPhotoName") %>'
我确定您意识到您使用的是锚标记而不是图像标记……必须单击此按钮才能显示图像(如果 url 正确)。