Selected values of the ASPxListBox that is placed in the DrowDownWidnowTemplateContainer are collected on the client side using the GetSelectedValues() method and saved in a HiddenField.
On the server side they can be retrieved from this hidden field and processed according to the user's scenario.
Question Comments
Added By: Steve Nuss at: 3/30/2015 2:47:35 PM
I tried this sample codes. It worked. But in my program, instead of <head>, <body>,...I have a site template and my page has <content>.
When I put <html xmlns="http://www.w3.org/1999/xhtml"> below <content>, I get error - The name 'htmlEditors' does not exist in the current context.
When I put <html xmlns="http://www.w3.org/1999/xhtml"> above <content>, I get error - Only Content controls are allowed directly in a content page that contains Content controls.
Where should I put "<html xmlns="http://www.w3.org/1999/xhtml">" in my aspx code?
Thanks.
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T225436: ASPxDropDownEdit - how to get selected values from the listbox on the server side. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.