按下送出按鈕時 頁面所有元件disabled,頁面處理完(Button1_Click事件)後 會自動解除disable狀態
if (!Page.IsPostBack):
string sScript = "function FormDisabled() { form1.disabled = true; }";
Page.ClientScript.RegisterClientScriptBlock(typeof(string), "FormDisabled", sScript, true);
Page.ClientScript.RegisterOnSubmitStatement(typeof(string), "FormDisabled", "setTimeout('FormDisabled()',0);");
沒有留言:
張貼留言