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.
如何仅通过一个按钮实现必填字段验证。?
我在一个页面中应用它并且它可以工作,但是在我的页面中有 2 个按钮,并且两者都检查了这个验证。
您可以使用<asp:RequiredFieldValidator ControlToValidate=""/>仅验证一个按钮。希望能帮助到你
<asp:RequiredFieldValidator ControlToValidate=""/>