如何在文件上传cntrl中获取图像URL [英] how to get image url in file upload cntrl

查看:80
本文介绍了如何在文件上传cntrl中获取图像URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要从文件上载控件中的数据库中获取图像URL,以在图像控件中显示图像?

i hav to get image url from database in the file upload control to show image in image control ??

推荐答案


检查此
http://forums.asp.net/t/1127267.aspx/1 [ ^ ]
最好的问候
M.Mitwalli
Hi ,
Check this
http://forums.asp.net/t/1127267.aspx/1[^]
Best Regards
M.Mitwalli


您需要使用ADO.NET从数据库中检索存储图像的文件夹位置!在此处阅读有关ADO.NET的信息,它将对您有所帮助.

看看这些:
MSDN:ADO.NET [ MSDN:使用ADO.NET访问数据 [ ^ ]

检索图像路径(字符串值)后,只需将其分配给图像控制源,它将从给定显示位置选择图像.

如有需要,请参考以下文章:
在ASP.NET中开发相册 [在C#中从SQL数据库检索图像 [
You need to retrieve folder location where image is stored from your database using ADO.NET! Read about ADO.NET here and it will help you.

Look at these:
MSDN: ADO.NET[^]
MSDN: Accessing Data with ADO.NET[^]

Once you retrieve the image path (string value), just assign the same to the image control source and it will pick the image from the location given for display.

Following articles for reference, if needed:
Developing a picture album in ASP.NET[^]
Retrieving Image from SQL Database in C#[^]


这篇关于如何在文件上传cntrl中获取图像URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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