Image DataBind使用asp.net [英] Image DataBind Using asp.net

查看:59
本文介绍了Image DataBind使用asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法DataBind我的形象!我使用自定义绑定并检查名称,引用,文件名称和一切都是正确的。

这是我用来将我的图像链接到数据库属性的代码,该属性调用类型



.. \\Images\\+ Eval(Type)+。jpg

I can't DataBind my image! I used the custom Binding and check the names, references, files' names and everything was correct .
Here is the code I used to link my Images into a database attribute which calls Type

"..\\Images\\"+Eval("Type")+".jpg"

推荐答案

这是我的html标签,可以在一个数据列表中运行,也适用于

- > PicUrl是我的照片数据库网址字段



this is my html tag that works inside a datalist and works as well
--> "PicUrl" is my database url field for photos


这篇关于Image DataBind使用asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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