//方法可以随意定义!!!!!!!!!!
btnClear_Click();
  
    private void btnClear_Click()
    {
        this.txtTitle.Text = "";
        this.txtA.Text = "";
     
    }
   protected void btnClear_Click(object sender, EventArgs e)
    {
        btnClear_Click();
    }

//相应地方调用该方法

//例:
  if (TextBox3.Text == "" || DropDownList1.Text == "" || DropDownList2.Text == "")
        {
            myMessageBox.show("请输入完整的信息", Page);
          
            btnClear_Click();
           
        }
else
{

}

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2021-11-17
  • 2021-12-31
  • 2021-07-30
  • 2021-12-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
相关资源
相似解决方案