.net question
i have a asp:LinkButton
, when clicked it hits the code behind, creates a session and it calls a javascript function to open a new tab with PDF document
this is the button :
<asp:LinkButton runat="server" CssClass="lnkBtn" ID="btnViewPDF" >
<img alt="" src="External_Files/images/view_pdf_icon.png" />
<span>View PDF</span></asp:LinkButton>
code behind :
Protected Sub btnViewPDF_Click(sender As Object, e As System.EventArgs)
Handles btnViewPDF.Click
Session("mina") = hfChartImg.Value
Page.ClientScript.RegisterStartupScript(Me.GetType(), "_viewPDF",
"changeUrl();", True)
End Sub
and this is the js function that opens the new tab with the pdf
function changeUrl(){
var url = 'CIP_frmCIPEventExplorePdf.aspx?ViewPDF=1&intCIPEventID=' +
$('#intCIPEventID').val();
parent.showNewTab(url, 'CIP Chart - PDF', 'CIP');
}
this code worked fine till i had to use to wrapp my page content asp:ScriptManager and asp:UpdatePanel
here is what my code looks like now
<body class="frame_content">
<form id="CIP_frmCIPEventExplore" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"
EnablePartialRendering="true"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div class="dataview_title" >
..............................
..........................
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
Question
when i put a break point at the session
line the code doesn't call the javascript function anymore, it hits the line and then the END SUB
can any one tell me please where is my problem ?