Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2501
WebDropDown - How to access the Selected Items Collection on Server-Side
posted

Hello,

Recently, I had a support request where a customer wanted to know how to access the Selected Items from a WebDropDown with Multiple Selection enabled using an ASP Button click.

I have attached a sample website written in VB with VS2010 CLR 4.0 using NetAdvantage 2010 Volume 3, Build 1013 for ASP.Net.  In the sample, the WebDropDown is retrieved using the Page.FindControl in a Button Click on the server.  The WebDropDown Selected Items Collection is then accessed and all the Selected Items are displayed in an ASP TextBox on the Page after the PostBack completes.

Run the sample to test.  When the WebDropDown displays, click the DropDownArrow and select various items in the DropDownList and click the Button.  The Selected Items will display listed in the TextBox area.

Thank you.

Sincerely,
Mike D.
Developer Support Engineer
Infragistics
www.infragistics.com/support

WDD_MultiSelect_VB_VS2010.zip