Compilation error when inheriting a partial class page

D

dinesh

I am using ASP.Net 2.0 ,i've inherited a page in another page.
During compilaton I get the error saying
" the "base class" could not be found"
But when I rebuild the application the error goes. This behaviour is
very random.
Sample code in the code behind files

public partial class baseClassName : System.Web.UI.Page
{
//Code
}

Now when I inherit this page in another page

public partial class derivedClassName : baseClassName
{
//Code
}

I've also tried putting the base class in a namespace and then
including it in the derived class
but then it says the namespace could not be found.

Is it not right to derive a page in asp.net2.0 ,or it is a problem
because of partial classes?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top