Skating the client check control while using Button

xiaoxiao2021-03-06  40

When using System.Web.ui.WebControls.Button, if the page has inspection controls (such as RequiredFieldValidator), check, if the page is also validationsummary and validationsummary.showMessagebox, you will pop up, plus Here, you can skip this prompt:

Button.attributes ["onclick"] = "Return;";

Of course, there are other ways, such as writing Button directly:

转载请注明原文地址:https://www.9cbs.com/read-64301.html

New Post(0)