ListBox and Javascript

  • Thread starter Thread starter Ken
  • Start date Start date
K

Ken

I have a ListBox item and I am using a javascript onclick function to
add items to the ListBox. The problem is when I do a post back .net
doesn't see any of the items I added w/ javascript, just the original
items. It there anyway to fix this?

Thanks,

Ken
 
you will need to extract them from your form post on postback and then then
use them befre form load occurs to make them available. If your loading the
listbox in form load then you will probably be overwriting the values your
javascript has added.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top