Link C# SqlCommand to the SelectCommand of SqlDataSource on aspx page
<p>Since I want to include a session variable in MySql <code>select</code> statement, I want to be able to write a <code>sql</code> string <code>select</code> statement in <code>.cs</code> page and reference it in the <code>SelectCommand</code> property in the <code>SqlDataSource</code> on the <code>.aspx</code> page. </p>

<p>How do I achieve that?</p>
