Open Pdf In Iframe In Internet Explorer
Lets go with one simple example here.
In Asp.Net, when we try to open a pdf in iframe in Internet Explorer,
we may get the warning as shown in the above image.
This is because, Internet Explorer by default is set to block the Active-X content.
If we allow the Acive-X content, then Internet Explorer.
checks for pdf plugin for displaying the pdf content.
If there is plugin installed, the pdf content will be displayed.
Else, Internet Explorer pop up will come, asking whether to
download the pdf or to open in System's pdf viewer.
First of all, there should be the plugin installed for displaying pdf in Internet Explorer.
By this plugin installation, we can avoid the pop up saying "save or open pdf".
For avoiding the pop up saying "Allow Active-X Content".
we should allow the Acive-X content from our program.
Try to find whether the code as shown in the following image is present in the web.config file.
If yes, then Remove it from there. Or remove all code that prevent Acitve-X contnet from displaying.