By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,559 Members | 1,180 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,559 IT Pros & Developers. It's quick & easy.

C# - WEB (ASP.NET 2.0): table element duplication in master page

P: 2
Hello all,

I'm using a master page whose body is set up like so:

Expand|Select|Wrap|Line Numbers
  1. <body style="background-color: #aacbf8;">
  2.     <form id="form1" runat="server">
  3.         <asp:ScriptManager EnablePartialRendering="true" ID="ScriptManager" runat="server" />
  4.         <asp:UpdatePanel ID="UpdatePanel1" runat="server" Visible="true">
  5.             <ContentTemplate>
  6.                 <!-- table with two trs for a menu, 
  7.                   one containing my ContentPlaceHolder, 
  8.                   and two more with a button and version info -->
  9.                  <asp:SiteMapDataSource runat="server" ID="SiteMapDataSource"                SiteMapProvider="WebMap" />
  10.             </ContentTemplate>
  11.         </asp:UpdatePanel>
  12.         <!-- UpdateProgress here -->
  13.     </form>
  14. </body>
The issue I'm having is that when I create a postback for whatever reason in the Content control inside the ContentPlaceHolder, the two trs below it (the button and version info) are getting rendered twice, one below the other. I had an UpdatePanel inside my Content control thinking that it was causing the duplication, but when I removed it, the problem persisted.

Please let me know if you need any more info about my Content control or anything.

May 7 '07 #1
Share this Question
Share on Google+
1 Reply

P: 2
Going back over everything, I saw that this is only happening in the files where my Content control contains a Repeater. I'm now looking at why that would cause my master page to render incorrectly, but this definitely worth knowing for the issue.

May 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.