Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (19 sloc) 542 Bytes
@page
@model NiceBMICalculatorModel
@{
}
<h2 class="success">@Model.ResultInfo</h2>
<form method="post">
<div asp-validation-summary="All"></div>
<div>
<label asp-for="Weight"></label>
<input asp-for="Weight" /> kg
</div>
<div>
<label asp-for="Height"></label>
<input asp-for="Height" /> cm
</div>
<br/>
<input type="submit" asp-page-handler="Calculate" value="Calculate" />
<input type="submit" asp-page-handler="TellPretty" value="Just tell me that I am pretty!" />
</form>