Textbox with “new line”

前端 未结 2 1104
难免孤独
难免孤独 2021-01-12 06:04

We tried several ways to make a textbox to accept the \"enter\", newline, etc.. But we are still facing the same problems. Most of the \"Third party\" controls allow the use

2条回答
  •  没有蜡笔的小新
    2021-01-12 06:14

    To avoid this problem and allow HTML tags in TextBox control you need to change ValidateRequest of Page directive to false. You can do it like in code bellow:

    use ValidateRequest="false"

提交回复
热议问题