title: Page_PreRenderComplete not firing in web control
body: <p>For some reason, the <code>Page_PreRenderComplete()</code> is not firing for me in a user web control. Here is my code behind, any ideas why?</p>
  
  <pre><code>    public partial class Views_CMSWebParts_GSAMetaTags : System.Web.UI.UserControl
      {
         public string Content { get; set; }
         public string LastModifiedDate { get; set; }
         public string PageTitle { get; set; }
         public string PageDescription { get; set; }
  
      protected void Page_PreRenderComplete(object sender, EventArgs e)
      {
  
          if (CMSContext.CurrentDocument.NodeClassName.Equals("ctv.DailyContent")
            || CMSContext.CurrentDocument.NodeClassName.Equals("ctv.Segment")
            ||  CMSContext.CurrentDocument.NodeClassName.Equals("ctv.segmentContainer"))
          {
              Content = "news-and-articles";
  
              //Published Date
              LastModifiedDate = ValidationHelper.GetString(CMSContext.CurrentDocument.GetValue("DocumentModifiedWhen"), "");
  
              PageTitle = CMSContext.CurrentPageInfo.DocumentPageTitle;
              PageDescription = CMSContext.CurrentPageInfo.DocumentPageDescription;
  
          }else if (CMSContext.CurrentDocument.DocumentName.Equals("Video"))
          {
              //using document name in this case becuase Video page type is Page (menu item)
              Content = "video";
          }
  
  
      }
  
  }
  </code></pre>