Connecting Tech Pros Worldwide Help | Site Map

ASP.NET Ajax Update Panel in ContentPlaceHolder

=?Utf-8?B?Qw==?=
Guest
 
Posts: n/a
#1: Feb 12 '07
Hi,
I have a ScriptManager and UpdatePanel as below

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

<ContentTemplate>

<uc1:SecurityFloatingCharge runat="server" ID="uctrSecurityFloatingCharge" />

</ContentTemplate>

</asp:UpdatePanel>

</asp:Content>

When I run my page I get an error stating
"Sys.WebForms.PageRequestManagerParserErrorExcepti on : The message received
from the server could not be parsed. Common causes for this error are when
the response is modified by calls to Response.Write(), response filters,
httpModules, or server trace is enabled. Details: Error parsing near 'et>"



When I don't use a Master Page and have my aspx like below without a
ContentPlaceholder it works fine. Anyone know why?



<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

<title>Partial-Page Update Error Handling Example</title>

</head>

<body>

<form id="form1" runat="server">

<div>

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

<ContentTemplate>

<uc1:SecurityFloatingCharge runat="server" ID="uctrSecurityFloatingCharge" />

</ContentTemplate>

</asp:UpdatePanel>

</div>

</form>

</body>

</html>


Closed Thread