Visual Studio .NET - ASP.NET Ajax Update Panel in ContentPlaceHolder

c g posted at 12-Feb-07 11:20

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.PageRequestManagerParserErrorException : 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>

 


Click here to sign in and reply. You could earn money via our message board contest just for being helpful.
  ASP.NET Ajax Update Panel in ContentPlaceHolder - c g  12-Feb-07 11:20 11:20:04 AM
      try this - K Pravin Kumar Reddy  12-Feb-07 11:33 11:33:31 AM
          Thanks. That works. - c g  12-Feb-07 12:56 12:56:33 PM
          How to get a handle on the ScriptManager frommy ASPX - c g  12-Feb-07 01:08 1:08:07 PM
              Working with ASP.NET Master Pages Programmatically - K Pravin Kumar Reddy  12-Feb-07 09:04 9:04:52 PM
                  Thanks. - c g  13-Feb-07 05:10 5:10:19 AM
      steps for Using the ASP.NET UpdatePanel Control with Master Pages - K Pravin Kumar Reddy  12-Feb-07 11:38 11:38:58 AM
View Posts

  

Search

search



Purchase