pageBaseType issues in web.config file

S

Suresh.Eddala

Hi,
I have added base class to all my pages in App_Code folder, and then
added following line of code in web.config file.

<system.web>
<pages theme="Blue" pageBaseType="ThemedPage" />
</system.web>

ThemedPage.cs code

public class ThemedPage:page
{
public ThemedPage()
{
//
// TODO: Add constructor logic here
//
}

protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
this.Theme = "Blue";
}
}



When I build the site, I am getting following error message.

Error 1 Make sure that the class defined in this code file matches the
'inherits' attribute, and that it extends the correct base class (e.g.
Page or UserControl). D:\Dot Net\Practice\Default.aspx.cs 12 14 D:\...\


I am trying on net, not much help. Can anyone please tell me where I am
doing wrong..

Thanks
Suresh
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top