aspdotnet_show_result_in_html_view.md - brainchildservices/curriculum GitHub Wiki
Slide 1
How to display values (pass value from code behind to html view)
@page
@model CalculatorModel
@{
ViewData["Title"] = "Home page";
}
- Make sure that you have appended the PageModel class properly in the Razor page.
- if not you wont be able to access any properties from the code behind.
- once you properly appended the model class you can simply access any properties of the corresponding Model Class.
- just by calling "@Model.PropertyName".