Because you are assigning the value to an attribute of an element in markup. You can certainly do this in the code behind by setting the property, but without spacing instead of code-like concatenation this can't work.
Have you tried:
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:conStr %>"
SelectCommand=
"SELECT *
FROM myTable
...Where...">
</asp:SqlDataSource>
?
Quintin Robinson
2009-07-10 23:19:34