如何将图像从一个页面传递到另一个页面

编程入门 行业动态 更新时间:2024-10-24 19:25:16
本文介绍了如何将图像从一个页面传递到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个在第1页显示图像的网格和一个按钮。如何将包含图像的网格传递到第2页上的另一个网格?任何人都可以帮忙吗?

I have a grid that displays an image on page 1 and a button. How do I pass that grid which has the image to another grid that is on my page 2? Anyone can help please?

推荐答案

将您的图像存储在缓存中以及可以到达该对象的另一页。 例如: Store your image in the cache and the other page you can reach that object. For example: //storing page: Image obj = //your declaration Cache["yourImage"] = obj; //other page: Image obj = Cache["yourImage"] as Image;

您可以从这里 [ ^ ]。 注意在会话中存储大对象,它会存储在网络服务器内存。

You can read about the caching from here[^]. Be aware of storing big object in session, it will be stored in the web server memory.

更多推荐

如何将图像从一个页面传递到另一个页面

本文发布于:2023-05-25 10:56:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/226635.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:词库加载错误:Could not find file 'D:\淘小白 高铁采集器win10\Configuration\Dict_Sto

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!