title: How to splitstring values and place values into different properties
body: <p>I am retrieving a string value (domain list) from an HTTP service, I want the values (DomainName: Status) to bind to a repeater where I have separate labels to display the values. </p>
  
  <pre><code>Domain Name        Status
  </code></pre>
  
  <p>Here I separate the various domains from each other: </p>
  
  <pre><code>foreach(var dom in 
      _response.Split(domainList, StringSplitOptions.RemoveEmptyEntries))
  </code></pre>
  
  <p>Now I have the string value: <code>domainname:status</code></p>
  
  <p>Here I separate these:</p>
  
  <pre><code>var val = dom.Split(seperation).Select(v =&gt; v.Trim()).ToList();
  </code></pre>
  
  <p>Now I have a class with 2 different properties... <code>Domainname</code> and <code>Status</code>.. 
  Here I add these values to a class of this kind: </p>
  
  <pre><code>_searchResult.DomainName = val[0];
  _searchResult.Status = val[1];
  </code></pre>
  
  <p>Here I add this class to <code>List&lt;DomainClass&gt;</code> : <code>_domainItem.Add(_searchResult);</code></p>
  
  <p>and then I bind this List to repeater: </p>
  
  <pre><code>rptDomainList.DataSource = _domainItem;
  rptDomainList.DataBind();
  </code></pre>
  
  <p>The result is a list of domains, or should I say a <code>Domain</code>. I get a list of 10 domains with the same extension.. </p>
  
  <p>Where am I going wrong?</p>