我无法在 ListView 中显示来自 SQL 数据源的值。
使用下面的代码,“设备属性值”中保存的值显示正常(因此 ahref 链接有效),但“设备属性值”中保存的值未显示,这意味着链接仅指向 AddAttribValue.aspx?EquipmentID= 20&HeadingID=
(因此 HeadingID 的末尾没有值)
<asp:TemplateField HeaderText="modify" SortExpression="modify">
    <ItemTemplate>
    <asp:ListView ID="ListViewAttribModify" runat="server" 
        DataSourceID="SqlDataSourceAttribValues">
        <ItemTemplate>
        <tr style="">
            <td style="font-size:x-small;">
            <a href="EditAttribValue.aspx?ID=<%# Eval("equipment_attrib_value_id") %>">Edit</a>
            </td>
        </tr>
        </ItemTemplate>
        <LayoutTemplate>
        <table ID="itemPlaceholderContainer" runat="server" border="0" style="">
            <tr ID="itemPlaceholder" runat="server">
            </tr>
        </table>
        </LayoutTemplate>
        <EmptyDataTemplate>
        <table id="Table2" style="">
            <tr>
            <td style="font-size:x-small;">
                <a href="AddAttribValue.aspx?EquipmentID=<%=Request.QueryString("id") %>&HeadingID=<%# Eval("equipment_attrib_heading_id") %>">Add</a>
            </td>
            </tr>
        </table>
        </EmptyDataTemplate>
    </asp:ListView>
</ItemTemplate>
</asp:TemplateField>
'equipment_attrib_value_id' 中保存的值确实存在,因为它在 . 是什么阻止我在中使用相同的值,更重要的是,我该如何修复它/解决它?