我有一个 UserControl.ascx 并希望这个 ascx 使用(引用)另一个库(项目)中的代码隐藏。所以在@control
指令中我做了以下
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="..\CodeBehinds\ucBehind1.cs" %>
但是当运行页面时我看到了错误
Parser Error Message: Cannot use a leading .. to exit above the top directory.
有没有办法实现它?