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.
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.