locked
How the below code will be written in asp.net core RRS feed

  • Question

  • User2056817590 posted

     @Html.Label(String.IsNullOrEmpty(notification.Name) ? "BLANK" : notification.Name, new { @class = "mtop05 mbottom025" })

    Thursday, April 22, 2021 9:30 AM

Answers

  • User-821857111 posted

    You can use the Html.Label helper in .Net Core. Otherwise:

    <label for="Name" class="mtop05 mbottom025">@(String.IsNullOrEmpty(notification.Name) ? "BLANK" : notification.Name)</label>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 22, 2021 6:33 PM