본문 바로가기

프로그래밍/ASP.NET

Literal 에 BR 태그 적용하기

반응형

<asp:Literal ID="ltTotalReview" runat="server"/>


ltTotalReview.Text = result["TOTAL_REVIEW"].ToString().Replace("\n", "<br />");


Environment.NewLIne 이나 "\r\n" 이 통하지 않을때...