Button1.Attributes.Add("onclick", "return confirm('确定要删吗?');");
protected void Button1_Click(object sender, EventArgs e)
{
Button1.Attributes.Add("onclick", "return confirm('确定要删吗?');");
this.Label1.Text = DateTime.Now.ToString();
}
第一次点击Button1的时候 不执行
Button1.Attributes.Add("onclick", "return confirm('确定要删吗?');");这句 怎么处理?