Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
vc56522
Starting Member
11 Posts |
Posted - 2005-07-14 : 16:08:22
|
I am using vb.netI created Checkboxlist called Category: It contained values: Yes, No, Unknown. User can select more than one. I turn it into a string before I save it to the database. The problem is I can't read it back out from the database and set it value: If I have the value Yes saved in the database. I want the checkbox Yes to be check when I load the page. This is my code so far to read back from the database: (don't work) mystring = Reader("Category") myarray = mystring.Split(",") For i = 0 To (myarray).Length - 1 i += 1 Category.Items(i).Selected = True NextAny help would be welcomedThanks |
|
jhermiz
3564 Posts |
Posted - 2005-07-14 : 16:18:59
|
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=51130 Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]Imperfection living for perfection -- [url]http://jhermiz.blogspot.com/[/url] |
 |
|
ehorn
Master Smack Fu Yak Hacker
1632 Posts |
Posted - 2005-07-14 : 16:26:52
|
[code]for i... Category.Items.FindByValue(i).Selected = truenext[/code] |
 |
|
|
|
|