Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ASP.NET-如何使用来自不同应用程序的用户控件?_C#_Asp.net_Vb.net - Fatal编程技术网

C# ASP.NET-如何使用来自不同应用程序的用户控件?

C# ASP.NET-如何使用来自不同应用程序的用户控件?,c#,asp.net,vb.net,C#,Asp.net,Vb.net,如何在应用程序a中利用应用程序B中的用户控件 应用程序A是一个VB.NET应用程序 应用程序B是一个C#应用程序 此代码尝试在aspx文件中注册控件以供使用: <%@ Register TagPrefix="uc1" TagName="Pager" Src="../ApplicationB/Controls/PagingControl.ascx" %> 我可以在应用程序A中使用应用程序B的PagingControl.ascx吗 谢谢ASP.Net将仅从GAC或其自己的文件夹结构加载

如何在应用程序a中利用应用程序B中的用户控件

应用程序A是一个VB.NET应用程序

应用程序B是一个C#应用程序

此代码尝试在aspx文件中注册控件以供使用:

<%@ Register TagPrefix="uc1" TagName="Pager" Src="../ApplicationB/Controls/PagingControl.ascx" %>
我可以在应用程序A中使用应用程序B的PagingControl.ascx吗


谢谢

ASP.Net将仅从GAC或其自己的文件夹结构加载二进制文件。要在这两个位置使用控件,必须将其编译为一个程序集,该程序集可以包含在两个应用程序的bin文件夹中。

我引用了应用程序B的DLL。有什么方法可以让我在应用程序A中使用PagingControl ASCX吗?我相信这就是你所指的。谢谢
Parser Error Message: The virtual path '/ApplicationB/Controls/PagingControl.ascx' maps to another application, which is not allowed.