[問題] 請問ASP的選擇視窗要怎麼呼叫出來

看板C_Sharp作者 (pat)時間17年前 (2008/06/23 23:33), 編輯推噓1(102)
留言3則, 3人參與, 最新討論串1/1
想請問一下各位大大 若是用VS2003 Windows專案想要選擇 是否要發布訊息可以用以下方法寫 DialogResult result; result = MessageBox.Show("確定要重建資料庫!?", "確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question,MessageBoxDefaultButton.Button1); if(result == DialogResult.Yes) { } 那我想請問一下在ASP上,也要有類似的視窗跳出,要怎麼辦到 請各位教學一下吧,謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.126.206

06/24 00:09, , 1F
javascript confirm
06/24 00:09, 1F

06/24 00:20, , 2F
樓上對了 ... return confirm('確定...');
06/24 00:20, 2F

06/25 02:09, , 3F
了解了,謝謝大大
06/25 02:09, 3F
文章代碼(AID): #18Ny8jgz (C_Sharp)