M
MRW
Hello!
I have a GridView (gv1). When clicked on, it brings up a record in a
DetailsView(dv1). I simply would like to edit what's in dv1 via an
objectdatasource. When I have the primarykey (RecordID), visible as a
databound column, RecordID is sent properly to the function.
However, if I make it read-only or invisible (which I prefer), RecordID
is not sent.
I've tried putting the tag DataKeysName=RecordID in dv1 along with:
<asp:ControlParameter Name="RecordID" ControlID="dv1"
PropertyName="DataKey" Type="Object"/>
in the Update Parameters. Yet, it still sends nothing.
How can I send information that I don't want displayed in the
detailsview to the update function?
Thank you for any help!
I have a GridView (gv1). When clicked on, it brings up a record in a
DetailsView(dv1). I simply would like to edit what's in dv1 via an
objectdatasource. When I have the primarykey (RecordID), visible as a
databound column, RecordID is sent properly to the function.
However, if I make it read-only or invisible (which I prefer), RecordID
is not sent.
I've tried putting the tag DataKeysName=RecordID in dv1 along with:
<asp:ControlParameter Name="RecordID" ControlID="dv1"
PropertyName="DataKey" Type="Object"/>
in the Update Parameters. Yet, it still sends nothing.
How can I send information that I don't want displayed in the
detailsview to the update function?
Thank you for any help!