Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Assign button value to model property on click in asp.net core 2.0

$
0
0

I have two buttons

<input type="button"  value="Yes" asp-for="ModelProperty" /><input type="button"  value="No"  asp-for="ModelProperty"/>

I want to assign value of clicked button to ModelProperty.


Viewing all articles
Browse latest Browse all 9386

Trending Articles