How To Get Client Added Controls back to Server

  • Thread starter Thread starter MS News
  • Start date Start date
M

MS News

Hello,

Using Java Script I add some ListItem items to my ListBox ( or Options to my
list box )
when I post back I don't get anything at all
What is going on
originally the ListBox is empty then the Client will do something to
populate it at runtime
At the server I get nothing

Please Help

Thanks
 
That is by design. There is no way for the ListBox control to "know" what
was put in on the client side. Remember only the value of the listbox is
posted back. You will have to use hidden fields to pass the new items back
and step through them and add them to the Items collection of the ListBox on
postback.

bill
 
Back
Top