r1xliquid
Posts: 41
|
| Posted: 10/31/2006, 8:33 AM |
|
I am trying to populate a list box with a database recordset. This is a html listbox, i have no need for a grid control. The list box will only be used to populate a second listbox.
Do i have to use the CCCreateControl function in the asp code to populate?
Is there a way i can use an onload event to populate?
any response will be appreciated!
|
 |
 |
dominhduc
Posts:
|
| Posted: 10/31/2006, 9:07 AM |
|
What's your version product? You have to code by yourself !
|
 |
 |
r1xliquid
Posts: 41
|
| Posted: 10/31/2006, 9:09 AM |
|
i am using code charge 3.0. I cannot code the listbox with static html, it needs to be populated from a DB. Is this possible without having the listbox as part of another type of control?
|
 |
 |
peterr
Posts: 5971
|
| Posted: 10/31/2006, 10:16 AM |
|
You can just use a standard listbox. The listbox component in CCS doesn't serve any other purpose than to be populated from a database. You can specify the table or SQL statement in the data source property of a listbox. If this is not enough you can stuff custom values into a listbox as described in this section of the Help file:
"Dynamically Modify the "List Of Values" of a ListBox"
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |