I have a very simple (currently) 1 page aspx website. It fails to compile with a message that I have not seen before. All other examples all seem to refer to master pages, which I do not have.
"Parser Error Message: 'Options.WebForm1' is not allowed here because it does not extend class 'System.Web.UI.Page'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Options.WebForm1" %>
Line 2:
Line 3:
Here is the top of Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
Inherits="Options.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
And for Default.aspx.cs
namespace Options
{
public partial class _Default : Page
{
Inherits="Options.WebForm1"
shouldn't beInherits="Options._Default"
? – Gusman