如何从数据库中检索checkboxlist值并在checkboxlist中检查已检索的值 [英] how to retrive checkboxlist value from database and retrived value should be checked in checkboxlist
本文介绍了如何从数据库中检索checkboxlist值并在checkboxlist中检查已检索的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的sqlDB结构
this is my sqlDB structure
Name | Address | Gender | Course
xxx | xxxxx | xxxx | BA,BBA,BCA
i当然列中有三个值。我想要检索这三个值,并且应该检查三个值。 checkboxlist
i可以检索一个值,重试值可以检查复选框列表
但三个值我不能
更新我这样做
如何解决这个问题?
i have three value in course column.i want to retrive these three value and retrived three value should be checked in checkboxlist
i can retrive one value and retrived value can checked the checkbox list
but three value i cant
for update i doing this
how to solve this?
推荐答案
以下是如何将逗号分隔值拆分为记录集的想法:拆分列值 [ ^ ]
其余属于你;)
Here is an idea how to split comma separated values into set of records: split the column values[^]
The rest belongs to you ;)
这篇关于如何从数据库中检索checkboxlist值并在checkboxlist中检查已检索的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文