title: Accessing static class method from aspx page
body: <p>I get a "System.ArgumentException: Keyword not supported: '&lt;%'." error when I try to access a static class method that will determine what connectionstring I will be using. It is probably a syntax error but I'm not very familiar with accessing class methods from an aspx page.</p>
  
  <pre><code>&lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="&lt;%=GetConnectionString.createConnectionString()%&gt;" SelectCommand="SELECT * FROM [Activity]" OnSelecting="SqlDataSource1_Selecting1"&gt;&lt;/asp:SqlDataSource&gt;
  </code></pre>