1
在使用JavaScript頁面加載,我禁用按鈕。如何啓用按鈕?
也就是說
protected void Page_Load(object sender, EventArgs e){
{
btnExcel.Attributes.Add("onclick", " this.disabled = true; " +
ClientScript.GetPostBackEventReference(btnExcel, null) + ";");
}
現在,我想是爲了使按鈕控制
protected void btnExcel_Click(object sender, EventArgs e)
{
1. Rpt.ExportToHttpResponse(ExportFormatType.Excel, Response, true, "Project Summary Report");
2. btnexcel.enable=true;
}
在btn_click
事件執行1條語句後,
爲什麼不執行2語句?
如果2語句不那麼執行我的按鈕控制不啓用?