且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从网格视图中使用的复选框中获取值作为模板字段?

更新时间:2023-10-19 21:28:46

提交按钮点击,你可以循环遍历 GridViewRows 并找到 CheckBox 控件。然后你可以确定状态。



示例 - 带CheckBox的GridView:在ASP.Net中获取选定的行 [ ^ ]
In Submit button click, you can loop through the GridViewRows and find that CheckBox control. Then you can determine the state.

Example - GridView with CheckBox: Get Selected Rows in ASP.Net[^]