title: c# how to request url parameters and change char
body: <p>After getting some url parameters, I would like to use them later in my c# code, but in a slightly different format.</p>
  
  <p>"http://example/myexample.aspx?attendees=john.sam&amp;speakers=fred.will.tony.amy.al"</p>
  
  <p>I am able to get the values as a string in their existing format using:
  c# code</p>
  
  <pre><code>public string myattendees()
  {
      string attendees;
      attendees = Request.QueryString["attendees"];
      return attendees;
  }
  public string myspeakers()
  {
      string speakers;
      speakers = Request.QueryString["speakers"];
      return speakers;
  }
  </code></pre>
  
  <p>myattendees returns (separated with periods with no quotes)</p>
  
  <p>john.sam</p>
  
  <p>and
  myspeakers returns (separated with periods with no quotes)</p>
  
  <p>fred.will.tony.amy.al</p>
  
  <p>But I would like to convert it so it would return a string like these with comma separated and single quoted values.</p>
  
  <p>'john' , 'sam'</p>
  
  <p>and</p>
  
  <p>'fred' , 'will' , 'tony' , 'amy' , 'al'</p>
  
  <p>What would be the best way to do this in c#? Use a NameValueCollection?</p>
  
  <p>*question edited for clarity on details.
  *edit - fixed spelling error.</p>