title: How to move ASP.NET PlaceHolder control from Page controls collection to a custom Control's output?
body: <p>I am writing an ASP.NET custom control.</p>
  
  <p>In my custom control code, I find a PlaceHolder control in the page like so:</p>
  
  <pre><code>this.myPlaceholder = Page.FindControl("placeholder1") as PlaceHolder;
  </code></pre>
  
  <p>Then, I render the placeholder as the output of the custom control:</p>
  
  <pre><code>protected override void Render(HtmlTextWriter output)
  {
      if (this.myPlaceholder != null)
      {
          this.myPlaceholder.RenderControl(output);
      }
  }
  </code></pre>
  
  <p>However, this causes the placeholder to be rendered in two places - in the custom control output (good) and in the original location in the page (bad).</p>
  
  <p>Is there any way I can remove this placeholder from the page so it is only output inside the custom control?</p>