This fix possibly pretty easy. When I copy and paste it works, but my SelectCommand is too long and I need to get it from the code behind.
Aspx file:
<asp:SqlDataSource ID="sds_Dashboard" runat="server" ConnectionString="<%$
ConnectionStrings:MyDbConn %>"
SelectCommand="<%= SelectCommand.ToString() %>">
Cs file:
public partial class Dashboard : System.Web.UI.Page
{
public string SelectCommand = "Select * from .....";
}
Error:
Incorrect syntax near '<'.

ConnectionString="<%$?