Hello,
Can you show the code that you are using?
I have just tried this:
Code:
protected void Page_Load(object sender, EventArgs e)
{
string fileText = File.ReadAllText(Server.MapPath("TextFile1.txt"));
this.TextBox1.Text = fileText;
}
With this:
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Rows=20 />
</div>
</form>
</body>
</html>
And it worked exactly as expected.
The problem that you could be facing is with the rendering of the Environment.NewLine to br tags in the textbox.
Gary