DetailsView and DataKeys

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,049
Members
48,769
Latest member
Clifft

Latest Threads

Top