I want to fill with a value of the @Html.Editor when the page is loaded. Here is my failed attempt :
@Html.EditorFor(m => m, new { htmlAttributes = new { @class = "form-control" } })
At the top of the Razor page , I have this :
@model string
And this is my controller :
public ActionResult YeniBelge(string KimlikNo)
{
return View((object)KimlikNo);
}
It says value can't be null.
How can I make this correct? Thanks.