0

我有一个用 VS 2005 (C#) 编写的 asp.NET 网页。它当前包含一个下拉列表。我需要更改此下拉列表,以便可以选择多个项目。这是当前代码(.aspx 页面)

        <div style="float: left; width: 280px;">
                <asp:Label ID="lblExport" EnableViewState="false" runat="server" Text="Export"></asp:Label>
                <asp:DropDownList TabIndex="24" runat="server" Width="70px" ID="ddlExport"
                    DataSource='<%# CodeListManager.Instance().GetCodelist(CodeListCache.Export)%>'
                    DataTextField="Value" DataValueField="Name" SelectedValue='<%# Bind("Export") %>'
                    AppendDataBoundItems="true">
                    <asp:ListItem Value=""></asp:ListItem>
                </asp:DropDownList>
            </div>

有没有办法将其保留为下拉列表,或者我需要使用列表框?如果我使用列表框,我将如何对其进行编程以允许多选?这可以在 .aspx 页面上完成还是必须在 aspx.cs 页面上完成?

4

0 回答 0