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.
Expand|Select|Wrap|Line Numbers
- iframe1.Attributes["src"] = "second.aspx"
Here, img is a byte array.
Expand|Select|Wrap|Line Numbers
- try
- {
- response.contenttype("image/jpeg");
- response.binarywrite(img);
- response.end();
- }
- catch(Exception ex)
- {
- response.write("Error loading the image");
- }
Also, when i ran in debug mode, i found that on click of print button, the first.aspx's prerender event is getting called (only in IE).
Can you kindly help me out with this. Its pretty urgent.
Thanks in advance!
Regards,
Anoop Athreyasa