我在HTMl中有HiddenField:
<asp:HiddenField ID="BodyHiddenField" runat="server" Value = " " />
现在我想在此文本的值中添加多行:
感谢您的注册。您的注册已确认。日期 : 24 Feb 2019 时间 : 09:30 AM
要成为 :
First Line = Thank you for registration .Your registration has been confirmed.
Second Line = Date : 24 Feb 2019
Third Line = Time : 09:30
在 PageLoad 事件中,为隐藏字段赋值
BodyHiddenField.Value="Thank you for registration .Your registration has been confirmed.nn Date : 24 Feb 2019 nn Time : 09:30"