-1

我正在将数据库中的数据添加到项目符号列表中,如下所示

<asp:BulletedList ID="BulletedList1" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="description" 
            DataValueField="id">
        </asp:BulletedList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:chaaapaConnectionString4 %>" 
            SelectCommand="SELECT * FROM [quiz]"></asp:SqlDataSource>

我希望这显示为链接。我怎样才能做到这一点?

4

1 回答 1

2

你可以试试 DisplayMode="HyperLink"

<asp:BulletedList 
ID="BulletedList1" 
runat="server"  
DisplayMode="HyperLink"
DataSourceID="SqlDataSource1" 
DataTextField="description" 
DataValueField="id">
</asp:BulletedList>
于 2012-08-07T08:58:14.037 回答