Accessing static class method from aspx page

lbekieSma1

New Member
I get a "System.ArgumentException: Keyword not supported: '<%'." 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.\[code\]<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%=GetConnectionString.createConnectionString()%>" SelectCommand="SELECT * FROM [Activity]" OnSelecting="SqlDataSource1_Selecting1"></asp:SqlDataSource>\[/code\]
 
Back
Top