Saturday 11 February 2017

MVC - Fix Error - An exception of type 'System.ArgumentNullException' occurred in System.Web.Mvc.dll but was not handled in user code

Watch solution on YouTube



To Fix it replace
    @Html.Label(Model.SelectedCompanyName)

With
    @Html.Label(Model.SelectedCompanyName ?? "")

No comments:

Post a Comment