weird stufff – codebehind / codefile … namespaces …etc

web page line1:
<%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”ReportViewer.aspx.cs” Inherits=”WebApplication.Reports.ReportViewer” %>

when I comment out my Namespace from the cs-code file:

//namespace WebApplication.Reports
    public partial class ReportViewer : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)


I get the following error:
‘WebApplication.Reports.ReportViewer’ is not allowed here because it does not extend class ‘System.Web.UI.Page’.

if I then change my line1 to:
<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”ReportViewer.aspx.cs” Inherits=”ReportViewer” %>

it works again  ….

What's your thoughts on this?


Protected by WP Anti Spam