C
cmay
I am binding a List(Of T) to a DataList.
In this case, T is a class Test, which has a property TestId.
I am trying to use the DataKeyField with this
<asp
ataList DataKeyField="TestId" ...
The datalist displays fine, but when I do a post back, the DataKeys
collection is empty.
Is it not possible to use DataKeys w/ a List(Of T)? Could there be
anything I am doing wrong?
In this case, T is a class Test, which has a property TestId.
I am trying to use the DataKeyField with this
<asp
![Big Grin :D :D](/styles/default/custom/smilies/grin.gif)
The datalist displays fine, but when I do a post back, the DataKeys
collection is empty.
Is it not possible to use DataKeys w/ a List(Of T)? Could there be
anything I am doing wrong?