Get a screenshot of an ASP.Net page

I have an ASP.Net page that has a button that when I click on it I want to take a screenshot from the user's PC and send it to the server.

I'm fine with writing some kind of listener program to run on the server to accept requests for these images. Where I am a little fog is the best way to get the user's PC to send a screenshot. Does this need to be done by writing some kind of Active X control for an ASP.Net page? If necessary, it should be a cross browser and operating system.

Just in the right direction and what technologies I should use would be great. I would rather write this functionality myself, if possible, than using a ready-made solution, since I see that this function can be expanded in the future. How does something like WebEx or copilot handle this?

thanks

Gavin

Edit: just to make everything clear, I'm not trying to steal information from users' PCs. They will have to enable this feature. It is more in terms of support, so when customers have problems, they can send a screenshot of the page on which they are located.

+5
source share
4 answers

- , Java (). , , . ActiveX /IE;)

, : Java - ?

+4

ActiveX . , - Silverlight, Flash Java- ( ).

, , . , .

+3

-, ?

Then you can access all the pages displayed by html from the javascript document object and send it to the web service along with the browser type, etc. ActiveX installation is not required :-)

+1
source

I use the WebsitesScreenshot component to capture a website snapshot or thumbnail. This .NET component is very easy to use. I like this component. http://www.websitesscreenshot.com/

Code example:

WebsitesScreenshot.WebsitesScreenshot _Obj;
_Obj = new WebsitesScreenshot.WebsitesScreenshot();

WebsitesScreenshot.WebsitesScreenshot.Result _Result;
_Result = _Obj.CaptureWebpage("http://www.msn.com");

if (_Result == WebsitesScreenshot.WebsitesScreenshot.Result.Captured)
{
    _Obj.ImageWidth = 200;
    _Obj.ImageHeight = 300;
    _Obj.ImageFormat = WebsitesScreenshot.WebsitesScreenshot.ImageFormats.PNG;
    _Obj.SaveImage("c:\\msn.png");
}
_Obj.Dispose();
+1
source

All Articles