locked
Delete in List.aspx stopped working. RRS feed

  • Question

  • User-1254308814 posted

    The functionality for default enity deletion seems to have stopped working in my list.aspx file. I can't for the life of me figure out what went wrong. I also can't seem to get the item to show up in my edit details view by setting autogenerate delete button on my detailsview and enable deletion on the entities data source. Anybody have any similar difficulties?

     

    Friday, November 14, 2008 8:10 PM

All replies

  • User-1005219520 posted

    Hey Jamie,

    First step is set EnablePartialRendering to false.

    I have stuff quit working nearly every day. Just now my custom list quit working and I couldn't see the problem. I regenerated a new DD site, created a custom List.aspx and started changing the code until it broke. It never broke and I couldn't see what I was doing wrong (didn't bother to figure it out exactly) - I just copied the working code. Normally I can figure out what I did wrong by starting with working code and making modifications until I break the code or figure out what went wrong.

    Friday, November 14, 2008 9:42 PM
  • User-1254308814 posted

    The Enable Partial Rendering was set to false. Otherwise, I just hacked it for now. I want a better solution but this is sufficient since the client can't wait. 

       CommandArgument="<%#  table.GetPrimaryKeyString(GetDataItem()) %>"

       And then I just manually deleted it in the RowCommand Event handler.

    Saturday, November 15, 2008 3:05 AM
  • User1641955678 posted

    Not sure I'm quite understanding this issue.  When you say that Delete stopped working, what exactly is the behavior that you observe?  Do you get a specific error (after turning off AJAX)?

    thanks,
    David

    Monday, November 17, 2008 1:57 AM
  • User-1254308814 posted

    I haven't had time to try to reproduce the problem. No error is thrown the update just doesn't happen. I will put the limited set of files into a new project to see if I can isolate what is causing it when I have more time.

    Monday, November 17, 2008 12:29 PM