Error Inserting Data with DetailView control

S

strJulioNegron

I have page with a gridview bound to a table. when a row is selected it
uses the detailview to display more info and to consequently edit or
add data. the problem is that when I go to add new data I get a message
that basically tells me that I cant insert a duplicate in a column
thats a Primary Key, obviously I made sure that the data for the PK
column was unique, but I still get that error.

The only reason I can theorize is that its trying to insert information
from the last row that was selected, instead of using the new data from
the fields. How can I fix this, or even debug it, since it all takes
place internally in the CLR?
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top