在Controller內傳入你想要的值到TempData. TempData["Alert"]="你想要傳的值";. 2.在_Latout.cshtml加上這段. @if (TempData.ContainsKey("Alert"))
確定! 回上一頁