ASP error CS0103: The name ‘xx’ does not exist in the current context

Make sure that the CodeBehind and Inherits attributes of the ‘<%@ Page’ declaration in your asp file refer to the right class. It’s easy to get this wrong if you copy/pasted an aspx/aspx.cs pair intending to adapt them.

Print Friendly, PDF & Email