I don't know why I would change the source of parent.aspx... "Parent1.aspx.cs" is not found
ok, in one of the files i added --> CodeFileBaseClass="Parent" and that worked. But when I add it to some other pages that have the same complaint it says "Could not load type 'Parent'" It looks like this, or parts of, may have been written in VS2003 and I am using VS2005. ~Gina_M~ On Aug 6, 11:22 pm, Pratiksha Saxena <[email protected]> wrote: > In PARENT.ASPX -> Source go to top line and change this to<%@ Page > Language="C#" AutoEventWireup="true" CodeFile="Parent1.aspx.cs" > Inherits="Parent" %> > > It will work. > > Pratiksha > > On Thu, Aug 6, 2009 at 10:49 PM, Gina_Marano <[email protected]> wrote: > > > Not enough info? Or a stupid question? > > > ~Gina_M~ > > > On Aug 6, 8:47 am, Gina_Marano <[email protected]> wrote: > > > Hey Guys, > > > > I am having a problem here. > > > > I have Parent.aspx.cs: > > > > using System; > > > using System.Collections; > > > using System.ComponentModel; > > > using System.Data; > > > using System.Drawing; > > > using System.Web; > > > using System.Web.SessionState; > > > using System.Web.UI; > > > using System.Web.UI.WebControls; > > > using System.Web.UI.HtmlControls; > > > > /// <summary> > > > /// Parent of all pages > > > /// </summary> > > > public partial class Parent : System.Web.UI.Page > > > { > > > protected int id = -1; > > > > protected DataBaseUtils DBUtils; > > > protected bool CheckCurrentUser; > > > protected bool IsForAdmin; > > > ...<snip> > > > > and > > > > ReportLEvelIIIIntake.aspx.cs: > > > > using System; > > > using System.Data; > > > using System.Configuration; > > > using System.Collections; > > > using System.Web; > > > using System.Web.Security; > > > using System.Web.UI; > > > using System.Web.UI.WebControls; > > > using System.Web.UI.WebControls.WebParts; > > > using System.Web.UI.HtmlControls; > > > > public partial class ReportLevelIIIntake : Parent > > > { > > > protected void Page_Load(object sender, EventArgs e) > > > { > > > > } > > > > } > > > > both are in the source directory and part of the project. > > > > I am getting the following error: > > > > Error 1 The type or namespace name 'Parent' could not be found > > (are > > > you missing a using directive or an assembly reference?) > > C:\projects > > > \abdc\trunk\source\ReportLevelIIIntake.aspx.cs 12 44 > > C:\...\source\ > > > > Thoughts? > > > > ~Gina_M~
