get selected value from checkbox and put it on a row in a table
<p>Hy all,</p>

<p>I'm developing a web application and I'm trying to use a checkboxlist. I want that for each selected item in that checkboxlist to create a new row in a table.So if I have 5 items and i check 3, I want a table to appear with 3 rows and in each row the selected items.This is how i get what items are checked:</p>

<pre><code> protected void Button1_Click(object sender, EventArgs e)
    {
        string str = string.Empty;

        foreach (ListItem item in check.Items)
        {
            str += item.Value;
        }
    }
</code></pre>

<p>My question is: how can I create a table with the selected values?? I'm using c# in an asp.net application</p>
