看板 C_Sharp 關於我們 聯絡資訊
※ 引述《zoe7633 (zoe)》之銘言: : 請問要怎麼樣把所有checkbox弄為全不選呢??? : 就是按清除後 全部checkbox都會回到 : uncheck的狀態 Win Form: foreach(Control ctl in frm1.controls) { CheckBox chk = ctl as CheckBox if (chk != null) { chk.Checked = false; } } Web Form應也類似吧? -- ============================= 夏有涼風 冬有雪 http://itsoho.myweb.hinet.net ============================= -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.126.181.10
blackbing:WinForm的這種功能要用JavaScript來完成喔~ 03/17 15:31
blackbing:這種功能不應該在Server端執行! 03/17 15:32