Check your aspx and aspx.cs file, make sure the aspx's @Page CodeFile attribute points to your aspx.cx file, and the Inherits value matches the Class name on your aspx.cs
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ImportProducts.aspx.cs" Inherits="ImportProducts" Theme="Default" %>
public partial class ImportProducts : System.Web.UI.Page