locked
Item has already been added. Key in dictionary: 'Id' Key being added: 'Id' RRS feed

  • Question

  • User856534366 posted

    hi ,

    when i am trying to delete a project from the project_list page i'm getting the following error :

    Item has already been added. Key in dictionary: 'Id'  Key being added: 'Id'

    can anybody help me ?

    thanks.

    Wednesday, December 21, 2005 2:49 AM

All replies

  • User-2041805088 posted
    Please post your code. It will help us assess your issue.
    Wednesday, December 21, 2005 4:15 AM
  • User856534366 posted

    it's the time tracker starter kit code.

    Wednesday, December 21, 2005 4:36 AM
  • User-2041805088 posted

    it's the time tracker starter kit code.

    OK. Were you able to resolve it?

    Wednesday, December 21, 2005 11:45 AM
  • User1445417331 posted
    I stumbled across this post, which is 5 months old now looking to solve this problem, but I ended up working it out myself. Working on the Time Tracker Starter Kit (can be found at http://www.asp.net/default.aspx?tabindex=5&tabid=41), I came across this error. In /TimeTracker/ProjectList.aspx.vb there was a function called 'ListAllProjects_RowDeleting' which contained a statement 'e.Keys.Add("Id", ListAllProjects.Rows(e.RowIndex).Cells(0).Text)'... I simply added 'e.Keys.Remove("Id")' before the add and it stopped erroring out on me.
    Wednesday, May 3, 2006 11:09 AM