Hi all,
I'm facing issue with the print button present in the toolbar of IE.
Whenever i click the print button, the page's prerender event is called. This happens only in IE. When i try to print with Firefox, this does not happen.
I have an iframe in first.aspx page. In the prerender event handler, I'm giving the iframe source as follows.
iframe1.Attributes["src"] = "second.aspx"
In second.aspx, i read an image file, convert into byte array and display it in the first.aspx iframe as follows.
try
{
response.contenttype("image/jpeg");
response.binarywrite(img);
response.end();
}
catch(Exception ex)
{
response.write("Error loading the image");
}
The image is displaying properly in both firefox and IE. But when i try to print it, i'm getting error in IE.
Also, when i ran in debug mode, i found that on click of print button, the first.aspx's prerender event is being called (only in IE).
Can you kindly help me out with this. Its pretty urgent.
Thanks in advance.