If you hand edit code, even slightly and insignificantly, like adding a line break... Dreamweaver will no longer recognize the server behavior and allow it to be edited.
You have to be careful when hand editing and/or accept that once you edit one thing by hand you will have to continue to hand edit from that point forward.