title: How to set public bool value in C# code behind, read in .ascx User Control?
body: <p>I want to slightly modify a user control that is being loaded by various .aspx pages.</p>
  
  <p>If I set a bool value in the .aspx.cs page</p>
  
  <pre><code>public bool showTemplateBGOption;
  
  public bool TemplateBGOption
  {
      set { showTemplateBGOption = false; }
  }
  </code></pre>
  
  <p>How can I read the bool value <code>showTemplateBGOption</code> in the .ascx control that is rendered on the same .aspx page?</p>