.net Button按钮提示 确认是否删除

来源:互联网 发布:韦东山linux百度云 编辑:程序博客网 时间:2024/04/24 11:14
protected void Page_Load(object sender, EventArgs e)
    {
        Button2.Attributes.Add("onclick", "return confirm('确定要删除所有积分记录吗?');");

    }


    protected void Button2_Click(object sender, EventArgs e)
    {

        Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert('删除ok!')", true);
        
    }

0 0
原创粉丝点击