0
這是我的裸DataList控件定義: -DataKeys DataList控件
<asp:DataList runat="server" ID="dtltrial"
ondeletecommand="dtltrial_DeleteCommand" DataKeyField="PhotoId" >
</asp:DataList>
其中PHOTOID是我的表的主鍵,所以我給它datakeyField。不過,我也想要以及DataKeyField。我如何在DataKeyField中指定它,並稍後在DataList的ondeletecommand
事件中檢索它?
感謝提前:)