简体   繁体   中英

Showing an entire ASP website as an image

I have an ASP website that gets data from SQL queries and puts them into divs and then, superimposes the divs over an image. The only problem is that when people try to save the image, they do not get the data or the divs with the image.

Is there anyway I can combine the divs and the image into one single picture using ASP or even ASP.NET? This way when people try to save the images, they get the original image and also the data that is put on top of the image as well.

I have been trying to use the

Response.ContentType = "image/gif" 

tag in a separate page and tried to call that page as an image but that's not working when you have HTML combined with the ASP. Can anyone please help.

Youc can use html2canvas library to take "screenshots" of entire pages.

Update:

Apparently it is possibe server-side as well (using ASP.NET tho) by using WebBrowswer control (yes it can be used in ASP.NET as well). Take a look

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM