如何在.aspx页面中检索图像而不使用数据源或数据绑定仅使用文件夹中的图像 [英] how to retrieve image in .aspx page without using datasource or databind only used image from folder

查看:54
本文介绍了如何在.aspx页面中检索图像而不使用数据源或数据绑定仅使用文件夹中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友



我在实施程序时遇到一些问题。问题是我在.aspx页面上传图片

然后我了解你已经使用了其他不同的控件,就像转发器,gridview,listview,dataview一样,你可以使用图片标签实现控制。



我对这个控件有所了解但是我希望以另一种方式在我的程序中实现我想要在

  • 标签中检索图像但是多次。如何在不使用数据源和数据绑定控件的情况下检索图像标记中的图像。





    如何通过dyanamically从文件夹中检索图像意味着aspx.cs。



    请给我尽快提供信息。



    先谢谢!!

解决方案

< blockquote>这是你要做的:



< asp:image imagesrc =   给图像路径 xmlns:asp =  #unknown /> 


你好先生,



如果你想在.aspx页面的文件夹中的图片标签上这样做。 ..



只需使用两个文件夹,一个用于临时另一个用于永久文件。在.aspx页面从文件上传器获取图像并将其提供给临时文件夹并显示图像.aspx页面通过为临时文件夹中的图像创建动态路径.....在提交按钮上最后将其提供给永久图像文件夹......



希望它会帮助你,因为它从过去1年开始对我有效.....


Dear Friend

I have some problem when implementing program.The problem is when i upload images in .aspx page
then i understand you have used other different control just like repeater,gridview,listview,dataview in that control you can implemented by using image tag.

I have knowledge about this control but i want to implemented in my program in another way i want to retrieve image in

    and
  • tag but in multiple times.so how to retrieve image in image tag without using datasource and databind control.


    how to retrieve image from folder by dyanamically means aspx.cs .

    Please give me information as soon as possible .

    Thanks in advanced !!

解决方案

This is how you will do:

<asp:image imagesrc="give the image path" xmlns:asp="#unknown" />


Hello sir,

If u want this on your image tag from folder in your .aspx page...

Just use two folder, one for temp another for permanent.On .aspx page take image from file uploader and give it to temp folder and and show image on .aspx page by creating dynamic path for image from temp folder.....on submit button finally give it to permanent image folder......

Hope it willm helps you because it working well for me from last 1 year.....


这篇关于如何在.aspx页面中检索图像而不使用数据源或数据绑定仅使用文件夹中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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