I set it in the properties window, but here's what the source code looks like:
Code:
<asp:ListBox ID="MonthsListBox" runat="server" Height="25px" Width="143px" Rows="12" SelectionMode="Multiple">
<asp:ListItem Selected="True">January</asp:ListItem>
<asp:ListItem>February</asp:ListItem>
<asp:ListItem>March</asp:ListItem>
<asp:ListItem>April</asp:ListItem>
<asp:ListItem>May</asp:ListItem>
<asp:ListItem Selected="True">June</asp:ListItem>
<asp:ListItem>July</asp:ListItem>
<asp:ListItem>August</asp:ListItem>
<asp:ListItem>September</asp:ListItem>
<asp:ListItem>October</asp:ListItem>
<asp:ListItem>November</asp:ListItem>
<asp:ListItem>December</asp:ListItem>
</asp:ListBox>
As you can see I selected two items just to check if the multi-select was working and it does when the page loads, but as soon as I select something else, it changes to single select. Even if I don't set the selected = "true" on both those, then run the page, it starts out with nothing selected and operates as single select. Crazy, I know. Feels like it's a bug. When I run the page this is what I get in the page source code:
Code:
<td colspan="2">
<select size="12" name="MonthsListBox" multiple="multiple" id="MonthsListBox" style="height:25px;width:143px;">
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select></td>
And it operates as single select.