Take a screenshot of an iFrame

前端 未结 3 1539
说谎
说谎 2021-01-19 03:05

I am looking for a simple way to take a screenshot of an iFrame in my ASP page. I just couldn\'t achieve it with C# and I lack of knowledge of Javascript! Does anyone out th

3条回答
  •  灰色年华
    2021-01-19 03:17

    Unless I'm misunderstanding you, this is impossible.

    • You cannot instruct the user's browser to take a screenshot (this would be a security risk … and has few uses cases anyway).
    • You cannot load the page you want a screenshot of yourself (with server side code) because you don't have the credentials needed to access it.

提交回复
热议问题