Duration: 19 minutes
Summary: In this video, we are going to discuss ListBoxes. We can use a ListBox to display a list of items to the user. The user can then select one item from the list or multiple items (based on the SelectionMode). One practical way of doing this is listing two list boxes with a button in the middle. The user can select one or more items from the left (for example permissions), and assign them to the list on the right. That is what we are doing in this example. We will select a data source (the Contact table in the AdventureWorks database) and populate the list on the left. The user can then select the names from that list and click the button to move the items to the other list. We will see the code behind that help us in this process. At the end, we will see a RadioButtonList added to the page and some elements as a data source. We will bind the elements to the data source and display the items on the screen.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: ASP.NET 4, Visual Studio 2010, ListBox, var, Selected, ClearSelection, LisItem, DataSource, DataBind, Visible, DataTextField, DataValueField, SelectionMode, SqlDataSource, Select, RadioButtonList.












See the prices for this post in Mr.Bool Credits System below: