Connecting Tech Pros Worldwide Help | Site Map

ASP.NET Ajax Update Panel in ContentPlaceHolder

 
LinkBack Thread Tools Search this Thread
  #1  
Old February 12th, 2007, 03:35 PM
=?Utf-8?B?Qw==?=
Guest
 
Posts: n/a
Default ASP.NET Ajax Update Panel in ContentPlaceHolder

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>



 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.