save Iframe's source as an image on desktop
<p>I have an Iframe in a webpage whose source is filled when a submit button is clicked.I need the iframe source to be saved as an image on my desktop .How can this be done.
Heres the code:</p>

<pre><code>&lt;iframe id="IFAEventPerformance" name="IFAEventPerformance" scrolling="auto" runat="server"
 width="100%" height="403" class=""&gt;&lt;/iframe&gt;
</code></pre>

<p>and the cs file:</p>

<pre><code>protected void lnkBTNSubmit_Click(object sender, EventArgs e)
        {
this.IFrame1.Attributes.Add("src", "https:\\anotherwebsitename");
}


function for export to ppt is:
 protected void imgBTNExportPPT_Click(object sender, ImageClickEventArgs e)
        {            
            //WebsiteToImage websiteToImage = new WebsiteToImage("http://www.google.co.in", @"C:\Users\312220\Desktop\myscreenshot.jpg");
            //websiteToImage.Generate();
            WebsiteToImage websiteToImage = new WebsiteToImage("C:\\Users\\304485\\Desktop\\Login.htm",(@"D:\\my\\chocos\\sample.jpg"));
            websiteToImage.Generate();
            TextBox txtTextBoxRetailGroup = (TextBox)uscRetailParameters.FindControl("txtRetailCustomerGroup");
            TextBox txtTextBoxPPGroup = (TextBox)uscRetailParameters.FindControl("txtProductGroup");
            TextBox txtTextBoxEventID = (TextBox)uscEventParameters.FindControl("txtEventId");

            string RetailGrp;
            RetailGrp = txtTextBoxRetailGroup.Text;
            string PPGrp;
            PPGrp = txtTextBoxPPGroup.Text;
            string EventID;
            EventID = txtTextBoxEventID.Text;

            ShowPresentation();
            GC.Collect();
        }
</code></pre>
