13 views
Problem: I don't know why this is null, but I am passing the value in the controller, but it does not pass it to the view <Strong> Kind: @model LABEX7_GUINTUJOSHUA.Models.DataModel1 @{ ViewBag.Title = "HomePage"; Layout = "~/Views/Shared/_Layout.cshtml"; } < ... return View(); } } } <Strong> Model: namespace LABEX7_GUINTUJOSHUA.Models { public class DataModel1 { public String name { get; set; } }
asked
Dec 25, 2020
sasha
8.4k points