title: ASP.NET MasterPage, doesn't display my <%=CodeBehindVar %>
body: <p>Here is an example of what I want to do:</p>
  
  <p>Content side (Structure.master):</p>
  
  <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="Structure.master.cs" Inherits="Structure" %&gt;
  
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;Bienvenue sur&lt;/title&gt;
      &lt;meta charset="utf-8" content="" /&gt;
      &lt;link runat="server" href="App_Themes/Global/Metro.css?v=22" rel="stylesheet" type="text/css" /&gt;
      &lt;link runat="server" href="App_Themes/Global/Site.css?v=&lt;%=Version %&gt;" rel="stylesheet" type="text/css" /&gt;
      &lt;link runat="server" href="App_Themes/Global/Structure.css?v=22" rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>And codebehind (Structure.master.cs):</p>
  
  <pre><code>using System;
  using System.Linq;
  using BaseInstanceEntity = Library.Common.Entities.BaseEntities.BaseInstanceEntity;
  using BaseInstanceManager = Library.Manager.BaseInstanceManager;
  
  public partial class Structure : System.Web.UI.MasterPage
  {
      public string Version { get; set;}
  
      protected void Page_Load(object sender, EventArgs e)
      {
          Version = System.Configuration.ConfigurationManager.AppSettings["Version"].Replace(".", "");
  </code></pre>
  
  <p>As shown, I want to display the <code>Version</code> var into the header, as a cache control. When I execute the code above, the result on the line is:</p>
  
  <pre><code>&lt;link href="../App_Themes/Global/Site.css?v=&amp;lt;%=Version %&gt;" rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>It's like the code isn't interpreted. I couldn't manage to find explanation. Why is this happening?</p>