foreach statement (get string values)
<p>Can someone please help me out?  My code for splitting the strings is working however, i still need to use the splitted string my page. How can i achieve this? Here's my current code</p>

<pre><code>    private void SplitStrings()
    {
        List&lt;string&gt; listvalues = new List&lt;string&gt;();
        listvalues = (List&lt;string&gt;)Session["mylist"];
        string[] strvalues = listvalues.ToArray();

        if (listvalues != null)
        {
            foreach (string strElement in listvalues)
            { 
                string[] prods = strElement.ToString().Split("|".ToCharArray());
                string prodName = prods[0].ToString();
                Response.Write(prodName);
            }
        }
    }
</code></pre>

<p><a href="http://i46.tinypic.com/11b18ol.jpg" rel="nofollow">link text</a></p>

<p>how can i replace the response.write with any label or literal? when i tried to use a literal on the code it displays one single string not all of the strings that's been splitted.</p>

<p>any ideas?</p>
