J
John Kotuby
Hi all,
I have successfully created a well functioning stand-alone ASPX page written
in VB using VS 2008 and the 3.5 framework. It uses an UpdatePanel with 5
controls inside the ContentTemplate and works as expected.
However. when I place essentailly the same code in the Content area of a
Master Page I have problems with it. There is no ScriptManager on the Master
Page and therefore I should not require a ScriptManagerProxy.
<asp:ScriptManager ID="ScriptManager1" runat="server" >
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"
ChildrenAsTriggers="false" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnPostUpd" />
</Triggers>
<ContentTemplate>...
The defined Trigger is an ASP Button outside of the UpdatePanel region whose
Click event is called by various JavaScript functions that I created to do
some setup work before submitting the Callback, such as populating the
values of hidden fields which I use during the Callback processing to
determine the proper serverside functions to run, etc. These Javascript
functions are the same ones used in the stand-alone version of the page...
which works just fine.
Running in the debugger I get ...
htmlfile:Unknown runtime error
The callstack is pointing to Sys$WebForms$PageRequestManager$_updatePanel.
The line of code highlighted is:
// Update the region with the new UpdatePanel content
updatePanelElement.innerHTML = rendering;
Which is in a ScriptResource.axd with a long querystring
(?d=C7zdOE..........)
When I Break and place my cursor over the highlighted code I see what looks
like valid InnerHtml as below.
rendering = "
<table id="tblListLocator" align="center" width="98%"
cellpadding="0px" cellspacing="0"
border="1" bordercolor="silver">
<tr>
<td align="center" colspan="2">
<div style="position:absolut...
Has anyone seen anything like this before or have some idea why it might be
occurring?
So far I am stumped by this one.
Thanks for any input.
I have successfully created a well functioning stand-alone ASPX page written
in VB using VS 2008 and the 3.5 framework. It uses an UpdatePanel with 5
controls inside the ContentTemplate and works as expected.
However. when I place essentailly the same code in the Content area of a
Master Page I have problems with it. There is no ScriptManager on the Master
Page and therefore I should not require a ScriptManagerProxy.
<asp:ScriptManager ID="ScriptManager1" runat="server" >
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"
ChildrenAsTriggers="false" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnPostUpd" />
</Triggers>
<ContentTemplate>...
The defined Trigger is an ASP Button outside of the UpdatePanel region whose
Click event is called by various JavaScript functions that I created to do
some setup work before submitting the Callback, such as populating the
values of hidden fields which I use during the Callback processing to
determine the proper serverside functions to run, etc. These Javascript
functions are the same ones used in the stand-alone version of the page...
which works just fine.
Running in the debugger I get ...
htmlfile:Unknown runtime error
The callstack is pointing to Sys$WebForms$PageRequestManager$_updatePanel.
The line of code highlighted is:
// Update the region with the new UpdatePanel content
updatePanelElement.innerHTML = rendering;
Which is in a ScriptResource.axd with a long querystring
(?d=C7zdOE..........)
When I Break and place my cursor over the highlighted code I see what looks
like valid InnerHtml as below.
rendering = "
<table id="tblListLocator" align="center" width="98%"
cellpadding="0px" cellspacing="0"
border="1" bordercolor="silver">
<tr>
<td align="center" colspan="2">
<div style="position:absolut...
Has anyone seen anything like this before or have some idea why it might be
occurring?
So far I am stumped by this one.
Thanks for any input.