AnneF
asked on
OPening a PDF in a control in a web application
Hi,
I would like to open a pdf in a control in a form.
I have a list page, when I click on a record, it opens a new page. This new page is divided in 2.
On the left I need to open a PDF and on the right, I'll display some information, see attach image.
I would like to open this pdf document in the Page_Load of the control called ctlDisplayPDF in the page.
following is the code and the page:
I know how to open a file in a window, using ScriptManager.RegisterStar tupScript, but I haven't managed to open it in a control in a page.
Thank you in advance for your help
I would like to open a pdf in a control in a form.
I have a list page, when I click on a record, it opens a new page. This new page is divided in 2.
On the left I need to open a PDF and on the right, I'll display some information, see attach image.
I would like to open this pdf document in the Page_Load of the control called ctlDisplayPDF in the page.
following is the code and the page:
I know how to open a file in a window, using ScriptManager.RegisterStar
Thank you in advance for your help
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MarkingPaper.aspx.cs" Inherits="Sapphire.MarkingPaper" MasterPageFile="~/Master/Extra_MasterPage.master"%>
<%@ Register Src="~/Control/Marking/Application/Applicant/sks_PaperApplication.ascx" TagName="Paper_Application" TagPrefix="sks" %>
<%@ Register Src="~/Control/Marking/Application/Applicant/sks_DisplayPDF.ascx" TagName="DisplayPDF" TagPrefix="sks" %>
<%@ Register Src="~/Control/Menu/sks_MiniMenu.ascx" TagName="PopoutMenu" TagPrefix="sks" %>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<asp:Panel ID="pnlParameter" runat="server" Visible="false">
<asp:Label ID="lblFormTitle" runat="server"/>
</asp:Panel>
<sks:PopoutMenu ID="ctlPopOutMenu" runat="server" OnPreview="ctlPopOutMenu_GoTo"
ShowPrevious="true" ShowPreview="False" ShowHome="true" ShowSave="false"
OnGoTo="ctlPopOutMenu_GoTo" OnSave="ctlPopOutMenu_Save"/>
<tlk:RadDockLayout runat="server" ID="RadDockLayout1">
<table style="width:1290px">
<tr>
<td style="vertical-align: top; padding-left:15px;width:45%">
<tlk:RadDockZone ID="RadDockZone2" runat="server" Orientation="Vertical" Width="100%" CssClass="StyledZoneDock">
<tlk:RadDock ID="RadDock1" runat="server" Title="Assessment information" Width="100%" EnableAnimation="true" DefaultCommands="ExpandCollapse" BorderWidth="2px" BorderColor="White"
Resizable="true" CssClass="StyledDock" >
<ContentTemplate>
<asp:Label ID="TestMe" runat="Server" />
<sks:DisplayPDF ID="ctlDisplayPDF" runat="server" Name="Answer" />
</ContentTemplate>
</tlk:RadDock>
</tlk:RadDockZone>
</td>
<td style="vertical-align: top; padding-left:10px;padding-right:15px;width:35%">
<tlk:RadDockZone ID="RadDockZone1" runat="server" Orientation="Vertical" Width="100%" Skin="" CssClass="StyledZoneDock">
<tlk:RadDock ID="RadDock4" runat="server" Title="Assessment Paper" Width="100%" EnableAnimation="true" DefaultCommands="ExpandCollapse" BorderWidth="2px" BorderColor="White"
Resizable="true" CssClass="StyledDock">
<ContentTemplate>
<sks:Paper_Application ID="ctlPaperApplication" runat="server" Name="Answer" />
</ContentTemplate>
</tlk:RadDock>
</tlk:RadDockZone>
</td>
</tr>
</table>
<br />
</tlk:RadDockLayout>
<%--</div>--%>
<asp:Panel ID="pnlSubmit" runat="server" Width="99%" Visible="true">
<hrz:Submit ID="ctlSubmit" runat="Server" SubmitBackColour="#FFCD00"
showSubmit="False" ShowPrevious="true" ShowSave="false"
OnGoToNext="ctlSubmit_GoTo" OnGoToPrevious="ctlSubmit_GoTo" OnSave="ctl_Save" OnDisplayHelp="btnHelp_File"/>
</asp:Panel>
</asp:Content>
Add-pdf.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.