Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

@Html.CheckBoxFor() falls back to values in ViewDataDictionary #1483

@dougbu

Description

@dougbu

When the expression result is null e.g. in a Create view, @Html.CheckBoxFor() finds value (if any) in the ViewDataDictionary. This is incorrect and inconsistent with other HTML helpers. Expression-based helpers should not use ViewDataDictionary and the rest do not.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions