当我禁用
document.forms["Form1"].elements[okbn].disabled = true;
中的相应条目
this.Request.Form.AllKeys
消失了。如何禁用按钮但保留 AllKeys 中的条目?
最佳答案
disable
表示“不要将此包含在提交的数据中”。
也许你想要 readonly
而不是?
关于c# - 当 form[].element 被禁用时,Form.Key 消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13088633/