I'm still stuck... I'm using ASP.NET Web Forms.
I have a TextBox:
<p><asp:TextBox runat="server" TextMode="Multiline" ReadOnly="true" ID="txtBoxAlgo" rows="50" width="878px"></asp:TextBox></p>
I can only add text to this textbox Once from the code behind:
txtBoxAlgo.Text = ("My first line of text" + Environment.NewLine);
Now my issue is if I try to add text again to the textbox nothing happens. For example:
txtBoxAlgo.Text = ("First try! It works!");
txtBoxAlgo.Text = ("Nothing, not working :(");
Now I'm moving over a simple program I have made for a C# console and C# Windows forms. I'm experimenting with ASP.NET Web Forms.
I used Console.WriteLine(""); throughout my console application. The only way I can do something similar for webforms is make Labels and TextBoxes+Multilines for each instance I wanto output text to the screen, which at this point is not worth doing all that effort for each instance of Console.WriteLine.
I tried Response.Write, but first off this shows in the top left corner of the webpage and its all unformatted.
I have ran out of ideas and I can't find anything while searching. Can you add or Append text to a textbox? Can we use Response.Write in some type of way to format everything so a user can read it?
ReadOnly="true"
have something to do with it? – QuanticTextbox1.Text += "Additional Text";
.. – terbubbsStringBuilder
just like I showed yesterday – terbubbs