拍摄aspx页面的快照并将其转换为图像文件 [英] take snapshot of an aspx page and convert it into an image file

查看:91
本文介绍了拍摄aspx页面的快照并将其转换为图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行网站并加载主页面时,在那种情况下,我想在我的解决方案中搜索pagedefault.aspx并拍摄该页面的快照,然后将其转换为图像文件并将其保存到特定位置.所有这些都应该在加载我的母版页时在运行时发生.

when i run my website and my master page loads,at that instance i want to search in my solution for pagedefault.aspx and take snapshot of that page and convert that into an image file and save it to a particular location. all this should happen at runtime when my master page gets loaded.

推荐答案

您可以通过Page.LoadComplete事件来使用诸如drivesnapshot之类的s/w进行快照并存储它到特定的位置.关键事件是:
You can over ride Page.LoadComplete event to take snap shot using s/w like drivesnapshot and store it to a particular location. Key event is:
<asp:page onloadcomplete="EventHandler" xmlns:asp="#unknown" />


请参阅此线程,希望对您有所帮助

http://stackoverflow.com/questions/2715385/convert-webpage-to- image-from-asp-net [ ^ ]
refer this thread, hope it helps

http://stackoverflow.com/questions/2715385/convert-webpage-to-image-from-asp-net[^]


这篇关于拍摄aspx页面的快照并将其转换为图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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