Error Inserting Data with DetailView control

Discussion in 'ASP .Net' started by strJulioNegron, Apr 18, 2006.

  1. 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?
     
    strJulioNegron, Apr 18, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kha Tran
    Replies:
    0
    Views:
    565
    Kha Tran
    Jun 3, 2005
  2. =?Utf-8?B?QXJuZQ==?=

    DetailView

    =?Utf-8?B?QXJuZQ==?=, Jan 26, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    1,837
    msnews.microsoft.com
    Jan 27, 2006
  3. Henry Lee

    DetailView Data Update Error

    Henry Lee, Mar 2, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    959
    Henry Lee
    Mar 2, 2006
  4. Luqman
    Replies:
    1
    Views:
    494
    Luqman
    Nov 19, 2006
  5. Luqman
    Replies:
    2
    Views:
    844
    Luqman
    Apr 9, 2007
Loading...

Share This Page