protected override void OnInit(EventArgs e)
    {
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        this.Events.AddHandler("OnButton", new EventHandler(BtnShow));
        this.Button1.Click += (EventHandler)this.Events["OnButton"];
    }

    private void Button1_Click(object sender, System.EventArgs e)
    {
        Response.Write("成功");
    }

    public void BtnShow(object sender, System.EventArgs e)
    {
        Response.Write("成功");
    }

相关文章:

  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-11-28
  • 2022-02-08
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
相关资源
相似解决方案