Detailsview update method issue

G

Guest

I have a detailsview control on an ASP.NET 2.0 page which is bound to methods
in a business object through an ObjectDataSource. All of the bound methods
work correctly, but I have a slight problem with the update method.

Unless the primary key value is visible and editable (i.e. not readonly) in
the detailsview on the page, the Update action won't pass the value to my
method, so the record is not updated. Of course I don't want the end user to
see or edit the primary key. How can I get around this situation?


TIA for your time and expertise.
 

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,048
Members
48,769
Latest member
Clifft

Latest Threads

Top