I have a table which display records in a for each loop.Each row has a checkbox to show selected rows.
I want to keep track of the rows selected in the table so that when i navigate back to the pages where I had selected the rows I can see the checkbox checked.
My question.
1.Can I do this somehow without injecting javascript with bootstrap or some logic in the code behind?
If not what other logic can i use to bind the checkbox? (I was thinking keep a list of indices selected and check onrendering the rows but hope there is a nice way to do this)
2.How can I highlight the selected rows when i check the corresponding row checkbox again without injecting javascript.
在进一步分析我的需求和数据时,我能够通过一组选定的索引和 if 条件来实现上述条件,同时构建 UI 以呈现复选框和行的样式
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.