ASP.NET MVC UpdateModel vulnerable to hacking?

前端 未结 5 1782
不知归路
不知归路 2020-12-15 13:51

I have an ASP.NET MVC application that is calendar-like. As per the NerdDinner example, I\'m updating the results of my edit page using UpdateMethod()

In my app, cer

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-15 14:48

    There are overloads of UpdateModel that take an array of strings naming properties to update. These overloads will only update the named properties.

    There may be other easier / more declarative ways to accomplish this, I'm not an expert on MVC data binding.

提交回复
热议问题