Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はASP.NET Textboxコントロールを持っています。このMultilineプロパティは true に設定されており、効果的に HTMLtextarea要素になっています。
ASP.NET Textbox
Multiline
textarea
テキストボックスのテキストは次のように設定されます。
Text="New\r\nLine\r\nRequired"
ご想像のとおり、テキスト内の単語を別々の行に表示しようとしています。ただし、テキストは入力したとおりに表示されます。私は何を間違っていますか?助けてください。
これを試して
TextBox1.Text.Replace(Environment.NewLine, "<br />")