I tried this code but shows errorI am capturing the webpage as screen shot and save the screen shot in folder.
Capture image code as follows
protected void btnCapture_Click(object sender, EventArgs e)
Bitmap bitmap = new Bitmap
Graphics graphics = Graphics.FromImage(bitmap as System.Drawing.Image);
graphics.CopyFromScreen(0, 0, 0, 0, bitmap.Size);
But when i run the above code shows error as follows
A generic error occurred in GDI+.
please kindly help me what is the problem in my above code.