To print result from Response.Write in text box
<p>I'm learning to code in C#. I wrote this code to print the table on web. </p>

<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
    string str = TextBox1.Text;
    //Response.Write(str);
    int i = System.Convert.ToInt32(str);

    for (int x = 0; x &lt; 11; x++)
    {
        int result = i * x;
        Response.Write(i+" x "+x+" = "+result+"&lt;br/&gt;");
    }

}
</code></pre>

<p>As soon as I submit the value obtain from text box, it prints the multiplication table for that number (If the number typed is 45) as follows:</p>

<pre>
45 x 0 = 0
45 x 1 = 45
45 x 2 = 90
45 x 3 = 135
45 x 4 = 180
45 x 5 = 225
45 x 6 = 270
45 x 7 = 315
45 x 8 = 360
45 x 9 = 405
45 x 10 = 450</pre>

<p>Now I want to print this whole result in the textbox. Please help me!!</p>