如何在不使用完全数据绑定控件的情况下在图像控件上显示图片? [英] how to display a picture on image control without using fully databound controls??

查看:83
本文介绍了如何在不使用完全数据绑定控件的情况下在图像控件上显示图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我试着做一个简单的应用程序,我想根据存储在数据库中的图像名称在图像控件上显示图像.
但是最主要的是我没有使用任何完全数据绑定的控件..
我想知道如何在编码中做到这一点?
在哪里可以从数据库中获取图像名称并将其存储在数据表中,以及如何将该图像名称传递给图像控件?
有可能吗?
我用c锐利做..
谢谢:)

解决方案

arvinder_aneja写道:

dis种东西? br/> 可以1帮忙回避吗???



不要像智障人士那样说话.您不在5岁的房间里.

您在做网络应用吗?看起来好像不是,您没有这样说,但是如果您在数据库中有一个图像名称,那么在我看来您很可能是.数据绑定控件绝对是执行此操作的最佳方法,转发器可让您完全控制它们的呈现方式.如果只想显示一个图像,则从数据库获取图像的路径,并将其绑定到显示图像的控件.如果您不止一个,请使用数据绑定控件,或解释为什么不这样做的充分理由.


嘿,您的答案是对我有帮助.
我认为, 15 岁的男孩也可以给我建议.
因此,成为软件开发者 不是小孩子... 



好,让我们回顾一下

1-我问了您一些需要回答的问题,以便进一步帮助您
2-我问过你不要白痴说话,但你仍然是
3-您按下答案"按钮,但您发布的内容不是答案.

我们又如何开始呢?编辑您的帖子以包括我要求的详细信息,使用纯正的英语(此处接受不正确的英语,但txt语言是针对儿童而非成年人的),我们将看看我是否能为您提供帮助.


哇-我的问题都没有得到回答.这是一个Web应用程序吗?您要显示几张图像?如果只是一个,那是什么问题?如果不止一个,为什么不使用数据绑定控件呢?您要达到什么目的?


hi friends,
im tryin to make a simple application where i want to show the image on the image control on the basis of the image name stored in the database..
but the main thing is im not using any fully databound control..
i want the know how to do it in coding??
where we can fetch the image name from database and store it in datatable and how we can pass that image name to the image control??
is it possible??
im doing it in c sharp..
thanks :)

解决方案

arvinder_aneja wrote:

dis kinda thing???
can ne 1 help bout dis???



Don''t talk like a retard. You''re not in a room of 5 year olds.

Are you doing a web app ? It doesn''t seem like it, you didn''t say so, but if you have an image name in a database, it seems likely to me that you are. A data bound control is definitely the best way to do this, a repeater gives you full control over how they are rendered. If you only want to show one image, then get the path to the image from the DB and bind it to a control that shows an image. If you have more than one, use a data bound control, or explain why you have a good reason not to do so.


hey crystian your answer is not helping me.
i think dis advice can also be given to me by a 15 year old boy..
so be a software devolper and not a kid...



OK, let''s recap

1 - I asked you some questions that need answering in order to help you further
2 - I asked you not to talk like a moron, but you still are
3 - you pushed the ''answer'' button, yet what you posted is not an answer.

How about we start again ? Edit your post to include the detail I asked for, use real English ( bad English is accepted here, but txt speak is for children, not adults ), and we''ll see if I can''t help you.


Wow - none of my questions are answered. Is this a web application ? How many images do you want to show ? If it''s just one, what is the issue ? if it''s more than one, why do you want to not use a databound control ? What are you trying to achieve ?


这篇关于如何在不使用完全数据绑定控件的情况下在图像控件上显示图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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