How to display pdf as a modalpop up on the same page? [Resolved]

Posted by Nishant_Mittal under ASP.NET on 1/25/2013 | Points: 10 | Views : 1307 | Status : [Member] | Replies : 1
I have link of pdf on a page and want to display the pdf as a pop up on that same page.


Posted by: Ranjeet_8 on: 1/25/2013 [Member] [MVP] Gold | Points: 50


Try this,

<asp:Button ID="Button2" runat="server" Text="Button" />
<asp:ModalPopupExtender ID="ModalPopupExtender1" TargetControlID="Button2" runat="server" PopupDragHandleControlID="Panel2" CancelControlID="Button3" PopupControlID="Panel1">
<asp:Panel ID="Panel1" runat="server" style="display:none;">
<asp:Panel ID="Panel2" runat="server" style="width:300px;height:25px;text-align:right;background-color:black;cursor:move;">
<asp:Button ID="Button3" runat="server" Text="Close"/>
<div style="width:300px;height:400px;background-color:Gray;">
<iframe src="Form10C.PDF" height="400px" width="300px" >

Please Mark As Answer if this helps you


Nishant_Mittal, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response