I have the following code
public ActionResult Action1 {
TempData["msg"] = "Essa parte primeiro.\n Essa parte na linha de baixo.";
return RedirectToAction("Action2");
}
public ActionResult Action2 {
if (TempData["msg"] == null)
{
TempData["msg"] = "";
}
ViewBag.Message = TempData["msg"].ToString();
return View();
}
My View is the following:
<label style="color:red">@ViewBag.Message</label>
/n
has not worked to skip the line, can anyone help me?