Click here to Skip to main content
15,895,370 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!
I am working on Web Application. I need my files to share the common code. I have this code in my App_Code folder and named it BasePage.cs.

My page tag:
C#
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/masterPage.Master" CodeBehind="Home.aspx.cs"  CodeFile="Home.aspx.cs" Inherits="WebApplication1.Home" CodeFileBaseClass="BasePage" %>


Now when I save and try to run the page, I get the error: Parser Error Message: Could not load type 'BasePage'.
Can anyone please point out what am doing wrong?

Thank You
Posted
Comments
DamithSL 17-Aug-15 2:30am    
can you update the question with BasePage class code?
hamid15 22-Aug-15 0:27am    
HiI am thanks to the your attention.
I'm problem was resolved. matter was that web application is precompile and codeFileBaseClass property is use for website projects.

1 solution

You check your master page.may be some error there.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900