title: How would I bind a SqlDatasource ConnectionString property to a function
body: <p>I am trying to set the ConnectionString property to the return value of a function in the ASPX page.</p>
  
  <p>Example:  </p>
  
  <pre><code>&lt;asp:SqlDataSource runat="server" id="blah"
      ConnectionString="&lt;%= ServerSensing.GetConnectionStringByServer("someKey"); %&gt;"
      &gt;
      ...
  &lt;/asp:SqlDataSource&gt;
  </code></pre>
  
  <p>The above is obviously not going to work.. so.. what will?</p>
  
  <p>Preemptive remarks:
  * No, I can not use the Web.config binding</p>