加载图像时出现问题 [英] Problem loading the image

查看:109
本文介绍了加载图像时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用文件上传控件选择图像时,可以在图像控件中上传图像吗?现在我做不到.使用文件上传控件选择图像后,我必须单击其他按钮以在图像控件中显示图像.由于这是页面加载事件文件路径,因此已清除.请指导我解决.我正在使用VS 2005和C#编码.

Can I upload the image in the image control while I choose the image using file upload control. Now I can''t do this. After choosing the image using file upload control i have to click some other button to show the image in the image control. Since this is the page load event file path is cleared. Please guide me to fix. I''m using VS 2005 , C# coding.

推荐答案

Google是您的朋友;保持友善,并经常拜访他.他可以比在这里发布问题更快地回答问题:
Google is your friend; be nice and visit him often. He can answer questions a lot quicker than posting here: Google[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


您好,

点击事件时,您可以将文件路径存储在任何变量中(如果您希望在整个项目中使用它,则可以使用会话变量),然后在要显示图像的位置使用该变量.
Hi,

on click event, you can store the file path in any variable (if you want it throughout the project, then you may use Session Variable) and use that variable where you want to display the image.


这篇关于加载图像时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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