Vladimiro Paredes
|
Posted: 10/20/2003, 8:13 AM |
|
Hi all,
I am using ASP/VBScript
I was wondering if someone has knows how to do the following:
Basically I need to dynamically add values to a list box.
I will have a set of fixed values coming from the database. But depending on
the record, I would like to add a few more entries.
Thanks
|
|
|
DonB
|
Posted: 10/20/2003, 4:00 PM |
|
You will need to refetch the data for the listbox. See http://www.gotodon.com/ccbth/Features/Knowledgebase.asp?find=dynamic for a
start. The real trick is making the refetch occur, which is dependent upon
how your page is constructed. You need to change the listbox's recordsource
(probably) in the AfterExecuteSelect of whatever control holds the records
that the Listbox is dependent upon. Until that recordset has been SELECTed,
you won't know what value to specify for the Listbox. You will likely need
to ensure the Listbox is physically located further down the HTML than the
"selecting" recordset.
Look for "Dependent Listboxes" on this forum or one of the Codecharge
knowledgebases. It's been covered a lot, using several different
approaches.
--
DonB
http://www.gotodon.com/ccbth
"Vladimiro Paredes" <vparedes@exodusgroup.net> wrote in message
news:bn0u3h$j46$1@news.codecharge.com...
> Hi all,
>
>
>
> I am using ASP/VBScript
>
>
>
> I was wondering if someone has knows how to do the following:
>
>
>
> Basically I need to dynamically add values to a list box.
>
> I will have a set of fixed values coming from the database. But depending
on
> the record, I would like to add a few more entries.
>
>
>
> Thanks
>
>
>
>
|
|
|
|