Pass C# variable through URL
<p>I have defined a variable in C# as the item selected in a drop down.</p>

<pre><code>string parametername = ddlCarrier.SelectedItem.Text;
</code></pre>

<p>I now want to pass this variable in my URL to the next page. How do I do this in the href tag?</p>

<pre><code>&lt;asp:LinkButton href="Table.aspx?parameter=&lt;%parametername%&gt;"  ID="btnSubmit" runat="server"&gt;Click Here&lt;/asp:LinkButton&gt;
</code></pre>