Victor Garcia Aprea [MVP]
1/9/2003 8:57:00 AM
Hi Cellbert,
Any modifications you make to your <select> at client-side (adding, removing
items, etc) won't be automatically posted to & parsed by the server. You
will need to write some code to do that, basically posting the entire item
list to the server (ie. in a hidden form field), parsing it there and
filling the Items collection.
--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.
"cellbert" <hkoster@nyc.rr.com> wrote in message
news:25e201c2b7a3$dda64990$89f82ecf@TK2MSFTNGXA01...
> I have a <Select ... runat="server"> on the page, named
> selOne. On initial Page_Load, I populate it with one item
> in code. This displays fine. In client-side javascript,
> responding to a button on the page, I add some more items
> to it. On post-back of the page, I do nothing to this
> Select element, in fact I do nothing anywhere on the page,
> but what I get back in the variable selOne is the initial
> single element, as if my client-side Javascript had no
> effect. I've checked with client-side Javascript alerts
> that my additional items were really added (ie, on the
> client, selOne.innerHTML displays them). Any ideas?
> Thanks...