Capture Screenshots at Defined Time Intervals Automatically using asp.net c# web forms -


i have 1 online test website, , want capture screenshot @ defined time intervals, automatically, using asp.net c# web forms. need other related sample code.

i had tried 1 way. getting url, using capture html response http request. want store html image in database table. i'm not getting ideas regarding this.

below c# code.

using system; using system.collections.generic; using system.linq; using system.web; using system.web.ui; using system.web.ui.webcontrols; using system.net; using system.text;   public partial class _default : system.web.ui.page { protected void page_load(object sender, eventargs e) {     getimage(); }  public void getimage()  {    webclient myclient = new webclient();     string mypagehtml = null;     byte[] requesthtml;     // gets url of page     string currentpageurl = request.url.tostring();      utf8encoding utf8 = new utf8encoding();         // setting currentpageurl mypage.aspx fetch source (html)      // of mypage.aspx , put in mypagehtml variable.       currentpageurl = "http://localhost:49161/login.aspx";      requesthtml = myclient.downloaddata(currentpageurl);      mypagehtml = utf8.getstring(requesthtml);      response.write(mypagehtml);   } } 


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -