Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用了一个 ID 为“FavouriteGenres”的 CheckBoxList。提交表单后,另一个 aspx 页面想要获取选定的值。当我调试代码时,参数的键已更改为“FavouriteGenres$1”、“FavouriteGenres$2”等等(它代表了我所有的选择项)。问题是如何获取所有选定的值而不是一个一个地获取它们?
这里有一些很好的答案:
复选框列表选中值
如果您对此仍有疑问,请告诉我。