I would like to create a line break in the status message. This is the code I have tried but it wont create a new Line. I am using the Status Message that is used in Identity in Asp.net Razor.
On the cshtml page
<partial name="Status Message" model="Model.Status Message" />
on the same page I added the following to the scripts
<p style="white-space: pre-line">@Model.StatusMessage</p>
on the .cs page
if(user.WeeklyReminders != Input.WeeklyReminders)
{
StatusMessage = "Weekly Reminders email Notifications have been changed. \n";
}
StatusMessage += "Sent";
Results is: Weekly Reminders email Notifications have been changed. Sent
I also tried +Enviroment.NewLine(); With the same result.
I want it to be
Weekly Reminders email Notifications have been changed.
Sent.
Thanks
and it posted the
in the mesage – cbas007 Oct 14 '21 at 01:39