Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For a Textbox that dynamically loads a string. The string is long and displays only 1 line in the Textbox. Thus, only a part of the string is visible. How can the text in the TextBox get better formatted? Thanks.
Posted

1 solution

Use HtmlTextArea with runat="server" instead of TextBox

http://www.w3schools.com/aspnet/control_htmltextarea.asp[^]
 
Share this answer
 
v2
Comments
[no name] 1-Nov-13 12:44pm    
Ranjan: Thanks for your quick response. I tried to embed the TextArea control into the aspx, but got some mix-up - All of the asp controls after the TextArea control disappear. Could you provide some additional advice? Thanks.
Ranjan.D 1-Nov-13 12:59pm    
I don't understand what you mean by disappear.. Please do check the html source , try building it again and retest.
[no name] 1-Nov-13 13:14pm    
Ranjan: You are right. Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900