string description = Server.HtmlDecode(b2u.Description).Replace("<br />", "\n"); txtDescription.Text = description;
Replace("<br />", Environment.NewLine);
string Descripion = e.Item.Cells[9].Text.ToString().Trim(); Descripion = Descripion.Replace("\n", "<br/>"); e.Item.Cells[9].Text = Descripion.ToString();
<div class="display-field"> <%: new HtmlString(Model.Body.Replace(Environment.NewLine, "<br />")) %> </div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)