ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,505 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When the Status is open I want the Edit link to be enabled.
It should be disabled or Not show when Status isClosed
(Note the three permitted statuses are Open , Closed )
PatientPortal/Views/Questions/Edit.cshtml
This is basic Razor syntax. The link you provided does not go to github... But I assume the page is looping over a collection. So just add an "if" to change how the HTML is rendered to whatever makes you happy.
Razor syntax reference for ASP.NET Core
@if(item.Status != "Closed")
{
<a asp-page="./Edit" asp-route-id="@item.ID">Edit</a>
}