With a .net 4 card you can ...
1. It can be added dynamically, but you will need to provide your own constructor of code expressions ( see here for more information ) 1.1 You can also use another parameter to achieve the same goal, for example:

2.
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:yourConnectionString %>"
SelectCommand="YourStoreProcedure" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter Name="yourParameterName" ControlID="controlThatHoldsParameterValue" PropertyName="Text" />
</SelectParameters>
source
share