如何在数据列表中调用图像 [英] How to call the Image in datalist

查看:82
本文介绍了如何在数据列表中调用图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

偷看.
我在这里有一个问题,我编辑模板,然后在模板中放置标签.对于标签,如果我想显示数据库中特定列的文本,请使用以下代码:

 <   asp:Label     ID   ="   ="span>    runat   =" 服务器" 文本  "   staffFname")%>' / 解决方案

不错的教程可在 http://www.ezzylearning.com/tutorial.aspx?tid=1399196上找到. //www.ezzylearning.com/tutorial.aspx?tid=1399196 [ ^ ]


hi peeps.
I have a question here, I edit the template and I put a label into the template. For label if I want to show the text of a particular column from the database I use this code :

<asp:Label ID="lblStaffName" runat="server" Text='<%# Eval("staffFname") %>' />>



Here is my question,
for image control, if I want to get it from the database, how do I do that?
my image property in my database is nvarchar(max) and the in the data it is the path of the image url.

Urgent help is needed! Thanks!

解决方案

Nice tutorial is available at http://www.ezzylearning.com/tutorial.aspx?tid=1399196[^]


这篇关于如何在数据列表中调用图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆