Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经为出生日期做了一个扩展方法。这种扩展方法有三个下拉列表(一个代表日,一个代表月,最后一个代表年)。由于此控件可以在不同的视图上使用,那么将它与不同模型绑定的最佳方法是什么?我在模型中有一个 DOB 属性。
我建议按照此处所述实现自定义模型绑定器和绑定属性。