The Button ID does not get set to the Text of the Text Box
<p>I am creating a text box tb and a button b, and I am trying to set the ID of the button to the text of the Text Box, however, the ID is set to empty string, and not to the string that is entered in the text box.
Need help!
Thank you.</p>

<pre><code>    Button b = new Button();
    b.Text = "Comment";

    TextBox tb = new TextBox();
    String x = pno.ToString();
    b.ID = x + " " + tb.Text.ToString();
    form1.Controls.Add(tb);
    form1.Controls.Add(b);

    b.Click += new EventHandler(Button1_Click);
</code></pre>
