对于用c#编写的应用程序,我可以在vb中使用asp.net母版页吗?
我有一个49页的网站(asp.NET4)。该网站位于vb中 但我添加了一个论坛(并称之为“KnowledBase”),所以它就像。。。company.com/knowledgebase/。。。我在IIS7中将论坛配置为一个单独的应用程序,它是用c#编写的 可以在c#论坛中使用我的vb母版页吗?还是我必须创建一个完全独立的c#母版页 编辑: 基本上,在knowledgebase/default.aspx文件中,有以下内容:对于用c#编写的应用程序,我可以在vb中使用asp.net母版页吗?,c#,asp.net,vb.net,C#,Asp.net,Vb.net,我有一个49页的网站(asp.NET4)。该网站位于vb中 但我添加了一个论坛(并称之为“KnowledBase”),所以它就像。。。company.com/knowledgebase/。。。我在IIS7中将论坛配置为一个单独的应用程序,它是用c#编写的 可以在c#论坛中使用我的vb母版页吗?还是我必须创建一个完全独立的c#母版页 编辑: 基本上,在knowledgebase/default.aspx文件中,有以下内容: <%@ Page Language="C#" AutoEventWi
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false"
Inherits="YAF.ForumPageBase" culture="auto" uiculture="auto" %>
<%@ Register TagPrefix="YAF" Assembly="YAF" Namespace="YAF" %>
<script runat="server">
是的,您可以,但您需要将VB母版页复制到
论坛
webapp。到目前为止,您尝试了什么?我想你可以,只要它在同一个项目上,我将更新问题,说明我尝试了什么…根据错误消息,你确定你将MasterPageFile
属性放在Page
指令中了吗?这意味着在Register
指令中不能有该属性。我们遗漏了一些额外的信息吗?检查这个
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false"
Inherits="YAF.ForumPageBase" culture="auto" uiculture="auto"
MasterPageFile="~/homepage.Master" %>
<%@ Register TagPrefix="YAF" Assembly="YAF" Namespace="YAF" %>
<script runat="server">
Server Error in '/knowledgebase' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service
this request. Please review the following specific parse error details and modify your
source file appropriately.
Parser Error Message: The 'masterpagefile' attribute is not supported by the
'register' directive.