小编ila*_*898的帖子

ASP.NET MVC Helper Methods Throwing Null Reference Exception

I have been working on a project for about 9 months now using .NET Framework ASP.NET MVC. I have a view with many forms each with its own model. I use a ViewModel that contains all the individual models that I am using for the forms. I use the Html Helpers to create input boxes such as TextBoxFor and TextAreaFor in the forms as shown below.

@Html.TextAreaFor(d => d.Foo.Property, new { @class = "form-control" })
Run Code Online (Sandbox Code Playgroud)

This has worked since starting …

c# asp.net-mvc razor

5
推荐指数
1
解决办法
467
查看次数

标签 统计

asp.net-mvc ×1

c# ×1

razor ×1