Trying to pass dynamic values to a parameter in an SQL Data Source control
<p>I have some values that are being passed to a ASP.NET page using C# but I need those values to be set as parameters for an SQL datasource. I am just getting started with C# and ASP.NET so any help will be appreciated.</p>

<p>The data source code I have is as follows:</p>

<pre><code>&lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="&lt;%$ ConnectionStrings:PRS_atlantaConnectionString %&gt;" 
                SelectCommand="SELECT [ExtNum] FROM [EXTINFORMATION] WHERE (([LastName] = @LastName) AND ([FirstName] = @FirstName))"&gt;
                    &lt;SelectParameters&gt;
                        &lt;asp:Parameter DefaultValue="DYNAMIC_VALUE_HERE" Name="LastName" Type="String" /&gt;
                        &lt;asp:Parameter DefaultValue="DYNAMIC_VALUE_HERE" Name="FirstName" Type="String" /&gt;
                    &lt;/SelectParameters&gt;
            &lt;/asp:SqlDataSource&gt;
</code></pre>

<p>Currently I am displaying the values on the page using the following code:</p>

<pre><code>&lt;%= FirstName %&gt;
&lt;%= LastName %&gt;
</code></pre>

<p>Any help again will be appreciate it.</p>
