Button OnClick not firing on first click in ASP.NET?

后端 未结 5 1789
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-07 02:14
protected void ButtonCancel_Click(object sender, EventArgs e)
    {

        Response.Redirect(\"~/Logon.aspx\");
    }

this is not workin

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 02:38

    Are you sure the markup is correct?

    Does it look similar to the following?

    
    

    You need the "OnClick" attribute for it to work.

提交回复
热议问题