Dynamically add checkboxes to asp.net
<p>I am trying to add Checkboxes dynamically to webpage     </p>

<pre><code>            string[] words = masg.Split('~');
            int size = words.Length;
            CheckBox[] cbl = new CheckBox[size];
            for (int i = 0; i &lt; words.Length; i++)
            {
                cbl[i] = new CheckBox();
                cbl[i].Text = words[i].ToString();
                this.Controls.Add(cbl[i]);  
               // Response.Write("\n" + words[i]);
            }
</code></pre>

<p>I am getting error</p>

<blockquote>
  <p><strong>Control 'ctl01' of type 'CheckBox' must be placed inside a form tag with runat=server.</strong></p>
</blockquote>

<p>How should I proceed ? What changes to make on aspx page ? Please help.</p>
