[ASP.net WebForm] GridView的CommandField Button做刪除提示 - The blog of typewriter職人- 點部落

[ASP.net WebForm] GridView的CommandField Button做刪除提示 - The blog of typewriter職人- 點部落

瀏覽:309
日期:2025-09-30
今天下午發生的討論 一般要在GridView的按鈕按下時做刪除提示,大概兩種做法 1.把該欄轉成TempateField,然後在Button的OnClientClick寫return confirm(‘您確定要刪除嗎?’);,並確認該Button的CommandName為”Delete”...看更多