Split() function isn't giving output
<p>Whats wrong in the code..? It isn't working!!</p>

<p>Actually I want to split the entries from one of the field of database.. The items in it are separated by commas..</p>

<p>Here is what I am doing.</p>

<pre><code>string str = dataSet.Tables[0].Rows[0]["Ingredients"].ToString();

string[] split = str.Split(',');
IList&lt;string&gt; lblListItemIngredients  = new List&lt;string&gt;();
foreach (string item in split)
{
  lblListItemIngredients.Add(item);
}
</code></pre>

<p>and in my aspx page,</p>

<pre><code>&lt;ul&gt;
&lt;li&gt;
&lt;asp:label id="lblListItemIngredients" runat="server&gt;&lt;/asp:Label&gt;
&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>But the output isn't coming, but in debugging mode, i can see the string is splitting.. Whats wrong?</p>
