during a postback both the first and second time, it enters the Edit Click function, but does not execute the code?
I presume, stepping thru the events of the page is the only clue through a debugger. Your code does not seem to be dynamic, so there isn't any fault in the markup that you have posted.
Make sure you are not removing the click event handler at any case.