The register directive should be changed to the following:

<%@ register="" tagprefix="sc" namespace="Sitecore.Web.UI.WebControls" assembly="Sitecore.Kernel" %="">.

And all pages should be inherited from the System.Web.UI.Page class, rather than from the Sitecore.BasePage class.