1
ページの読み込み時にjavascriptを使用して、ボタンを無効にします。私が欲しい今ボタンを有効にする方法は?
protected void Page_Load(object sender, EventArgs e){
{
btnExcel.Attributes.Add("onclick", " this.disabled = true; " +
ClientScript.GetPostBackEventReference(btnExcel, null) + ";");
}
ある
は、ボタンコントロールbtn_click
イベントに1文を実行した後
protected void btnExcel_Click(object sender, EventArgs e)
{
1. Rpt.ExportToHttpResponse(ExportFormatType.Excel, Response, true, "Project Summary Report");
2. btnexcel.enable=true;
}
、
はなぜ2文が実行されていないを有効にしているのですか?2文が実行されない場合、ボタンコントロールは有効になっていませんか?