title: asp.net vb pass querystring to commandargument
body: <p>I am trying to pass a querystring value via the commandargument of a linkbutton. It doesn't seem to be getting the value and just passing the actual text in the commandargument.</p>
  
  <p>page:</p>
  
  <pre><code>            &lt;asp:LinkButton ID="LinkButton1"
          runat="server" 
          CausesValidation="False" 
          CommandArgument='&lt;%=Request.QueryString("uid")%&gt;' 
          CommandName="uid" 
          OnCommand="LinkButton1_Command" &gt;Close Case&lt;/asp:LinkButton&gt;
          &lt;asp:Button ID="Button2" runat="server" Text="Button" CausesValidation="False" /&gt;
  </code></pre>
  
  <p>code behind:</p>
  
  <pre><code>Protected Sub LinkButton1_Command(ByVal sender As Object, ByVal e As CommandEventArgs)
  
  Label1.Text = "You chose: " &amp; e.CommandName &amp; " Item " &amp; e.CommandArgument
  
  End Sub
  </code></pre>
  
  <p>It then actually returns:</p>
  
  <p>You chose: uid Item &lt;%=Request.QueryString("uid")%></p>
  
  <p>when it should return something like:</p>
  
  <p>You chose: uid Item 12345</p>
  
  <p>Thanks J.</p>