前台:

<input type="button" value="登录" />事件的名字自己命名

后台:

对应前台的事件名称里面的参数复制Page_Load事件里的参数就行

protected void Login_Click(object sender, EventArgs e)
{
        Response.Write("<script>alert('111')</script>");
}

相关文章: