passing the value of dropdownlist into gridview
<p>I have a dropdownlist populated by my database, below is my code:</p>

<pre><code>&lt;asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="dsNames" 
    DataTextField="Name" DataValueField="Id"&gt;
&lt;/asp:DropDownList&gt;
&lt;asp:SqlDataSource ID="dsNames" runat="server" 
    ConnectionString="&lt;%$ ConnectionStrings:dbProfilesConnectionString %&gt;" 
    SelectCommand="SELECT Lname+', '+Fname AS Name,Id FROM tblProfile"&gt;
&lt;/asp:SqlDataSource&gt;
</code></pre>

<p>Beside my Dropdownlist, I have a button and below I have a Gridview, what I want to achieve is whenever I select one of the name in my Dropdownlist, then when I click the button the name should be added in gridview. I am using asp.net with c#.</p>
