如何利用DIV的截图使用C#和ASP.NET网页? [英] How to take screenshot of div from a webpage using C# and ASP.NET?

查看:517
本文介绍了如何利用DIV的截图使用C#和ASP.NET网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建的HTML我生成网站上的动态图像。我有code产生一个​​PSN奖杯卡,AB的Xbox LIVE玩家卡,蒸汽玩家卡,和Xfire的玩家卡。每张卡放入自己的股利和从服务器端code动态生成。有没有办法使用C#和ASP.NET?

I would like to create dynamic images from html that I'm generating on website. I have code that generates a PSN Trophy Card, ab Xbox LIVE Gamer Card, a Steam Gamer Card, and an Xfire Gamer Card. Each card is put into its own div and built dynamically from server side code. Is there a way to capture a screenshot of a selected div on a webpage using C# and ASP.NET?

推荐答案

如果你需要采取截图,你需要这样做客户端。所以,你需要这样做使用一些客户端TECNOLOGY如JavaScript,闪光,Silverlight的... Asp.net服务器上,因此被排除运行。

If you need to take a screenshot you will need to do so client side. So you will need to do so using some client side tecnology like javascript, flash, silverlight... Asp.net runs on the server so it is ruled out.

下面是一些链接到其他相关的SO关于采取截图与JavaScript的问题:

Here are some links to other related SO questions about taking a screenshot with javascript:

<一个href=\"http://stackoverflow.com/questions/2046812/javascript-to-take-a-screenshot-of-a-website-without-using-activex\">Javascript把一个网站的截图,而不使用ActiveX

采取的JavaScript网页截图?

这篇关于如何利用DIV的截图使用C#和ASP.NET网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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