Sometimes copy paste has its disadvantages. I got an error – object does not exist in the current context while developing similar looking pages. It occurs due to many reasons, but my reason was – 2 webform files referencing the same codebehind file.
Easiest way to find this reason- use the find in files across the solution.
Filed under: ASP.NET