「よろしいですか」ポップアップ ウィンドウを削除ボタンに追加する必要がありますが、ユーザーが [OK] または [キャンセル] をクリックしたかどうかを取得する方法がわかりません。
これが私がそれを行う方法です:
string message = "Are you sure you want to delete this user?";
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("return confirm('");
sb.Append(message);
sb.Append("');");
Type type = this.GetType();
ClientScript.RegisterOnSubmitStatement(type, "alert", sb.ToString());