In my action I have

```
ViewBag.IsEnabled=false;

```

My view page has a button as follows.

```
@{string next = (bool)ViewBag.IsEnabled? string.Empty : "disabled" }
<button asp-action="Index" @next> Next </button>

```

But it does not work. How to fix it?