title: How to set code behind properties in javascript
body: <p>Is it possible to set a property of the code behind using javascript?</p>
  <p>I have the following:</p>
  <pre><code>private string dateFormat;
  public string DateFormat
  {
      get
      {
          return dateFormat;
      }
      set
      {
          dateFormat = value;
      }
  }
  </code></pre>
  <p>and want to set it like this: <code>'&lt;%=DateFormat%&gt;' = &quot;dd-mm-YYYY&quot;</code></p>
  <p>But when I run this and add a debbugger it comes out like this: '' = &quot;dd-mm-YYYY&quot;.</p>