Can't write text into textbox in ASP.NET web app
<p>I have an ASP.NET web application.</p>

<p>In the codebehind for the .ascx page (which I embed as below), I attempt to write a string to a textbox in a method like this:</p>

<p>Code for embedding control:</p>

<p>Control ctrl = Page.LoadControl("/RackRecable.ascx");
            PlaceHolder1.Controls.Add(ctrl);</p>

<p>Method to make string for inserting into textbox:</p>

<pre><code>   string AppendDetails()
    {
        StringBuilder sb = new StringBuilder();

        sb.Append("msg" + "    " + textbox1.Text etc etc );


        return sb.ToString();
    }
</code></pre>

<p>Called as (in codebehind event handler for button click):</p>

<pre><code>            this.TextBox4.Text = AppendDetails();
</code></pre>

<p>I call it by using ATextBox.Text = AppendDetails (in the button click event handler). The textbox TextBox4 is in the designer file so I am confused why the text does not get written into this textbox (it is readonly and enabled).</p>

<p>When stepping through, the textbox4 control will successfully show the text I want it to display in quick watch but not in the actual page, it won't.</p>

<p>Any ideas?</p>

<p>Thanks</p>
