linebreak or new line in the text field of a label in ASP.net

眉间皱痕 提交于 2019-12-24 23:26:48

问题


How can I have line break in text of a label in ASP.net. is there a way in HTML 5 to resolve this issue


回答1:


this can be achieved thru

<br />

<asp:Label ID="lblAdmin"  Visible='<%# IsAdmin %>' Font-Names="Time News Roman !important;"     runat="server" style="text-align: left"><br/>(Admin)</asp:Label>

it works perfectly as desired



来源:https://stackoverflow.com/questions/21604086/linebreak-or-new-line-in-the-text-field-of-a-label-in-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!