CodeFileBaseClass ..尝试在我的Web应用程序中共享公共代码 [英] CodeFileBaseClass .. Trying to share common code in my web application
本文介绍了CodeFileBaseClass ..尝试在我的Web应用程序中共享公共代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨!
我正在开发Web应用程序。我需要我的文件来共享公共代码。我在我的App_Code文件夹中有这个代码并命名为BasePage.cs。
我的页面标签:
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:
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/masterPage.Master" CodeBehind="Home.aspx.cs" CodeFile="Home.aspx.cs" Inherits="WebApplication1.Home" CodeFileBaseClass="BasePage" %>
现在当我保存并尝试运行该页面时,我收到错误:Parser错误消息:无法加载类型' 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
推荐答案
你检查你的母版页。可能会有一些错误。
You check your master page.may be some error there.
这篇关于CodeFileBaseClass ..尝试在我的Web应用程序中共享公共代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文