且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-01-08 11:23:31

将您的图像存储在缓存中以及可以到达该对象的另一页。



例如:

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.