title: Building a query string based radiobutton values
body: <p>I'd like to build a query string based on values taken from 5 groups of radio buttons.</p>
  
  <p>Selecting any of the groups is optional so you could pick set A or B or both. How would I build the querystring based on this? I'm using VB.NET 1.1</p>
  
  <p>The asp:Radiobuttonlist control does not like null values so I'm resorting to normal html radio buttons. My question is how do I string up the selected values into a querystring</p>
  
  <p>I have something like this right now:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="radio" name="apBoat" id="Apb1" value="1" /&gt; detail1
  &lt;input type="radio" name="apBoat" id="Apb2" value="2" /&gt; detail2
  
  &lt;input type="radio" name="cBoat" id="Cb1" value="1" /&gt; detail1
  &lt;input type="radio" name="cBoat" id="Cb2" value="2" /&gt; detail2
  </code></pre>
  
  <p>VB.NET</p>
  
  <pre><code>Public Sub btnSubmit_click(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim queryString As String = "nextpage.aspx?"
  
    Dim aBoat, bBoat, cBoat bas String
  
    aBoat = "apb=" &amp; Request("aBoat")
    bBoat = "bBoat=" &amp; Request("bBoat")
    cBoat = "cBoat=" &amp; Request("cBoat ")
  
  
    queryString += aBoat &amp; bBoat &amp; cBoat
  
    Response.Redirect(queryString)
  
  End Sub
  </code></pre>
  
  <p>Is this the best way to build the query string or should I take a different approach altogether? Appreciate all the help I can get. Thanks much.</p>