concept dropdownlist in category asp.net

This is an excerpt from Manning's book ASP.Net 2.0 Web Parts in Action: Building Dynamic Web Portals.
To allow the users to change the mode we’ll create a user control that displays a list of available modes and allows them to make a selection that changes the current mode. Additionally the control should pre-select the current mode within the list. Create a new user control named ModeChanger.ascx and add a DropDownList control to it. Set the AutoPostBack property of the dropdown list to true so that events are fired whenever the selected item is changed. The code for the dropdown control should now look like this:
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" />There are two aspects to creating our mode changer control. The first of these is loading the control with data. We saw this earlier in the chapter when we looked at the page display modes. In that section we saw that WebPartManager exposes a property which contains a list of the display modes available to us. We’ll use this property when the page is initializing and add the names of each one as a list item in the DropDownList control. The following snippet displays the code to do that:.
The code for our custom gallery rendering logic, shown in listing 5.4, first calls a helper method to display the instructional text. The reason for separating this code into a helper method is that we not only write the instructional text, but apply any InstructionTextStyle styles that have been specified as well. If we didn���t separate the logic for displaying the instructional text into its own method, the RenderCatalogPartLinks method would become overly long and cumbersome to maintain. After rendering the instruction text, our code then creates a DropDownList control and assigns it a unique ID. It is important to note that we also set the AutoPostBack property to true. This ensures that when the user makes a selection in the list a postback will occur, and we can set the selected catalog part to whatever gallery the user has selected. Setting the selected catalog part ensures that when the remainder of the RenderBody logic is run for the CatalogZone, the web parts that will be displayed will reflect the selected gallery.