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.
我正在使用 microsoft ajax 和ajax.beginform.
ajax.beginform
它非常适合模型绑定我的局部视图,但我需要根据服务器返回的内容有条件地禁用表单本身的一些按钮。
在不使用 JQuery 的情况下如何解决这个问题?
您是否考虑过使用两个单独的视图,并让控制器中的条件逻辑确定要显示的视图。