在我的aspx页面(比如Parent.aspx )中,我们访问在后面代码中定义的protected变量。eg: Parent.aspx
<div id="rp_chat_btn_container" class="grid-4 chat-btn-container <%=isChatBtnOnRight ? "btn--rearrange" : "" %>">这很好用。现在,在aspx页面中,我包含了另一个aspx页面,比如child.aspx。在I访问相同的变量。
Parent.aspx
<!-- #include file=/used/Child.aspx -->Child.aspx
<div class="grid-4 chat-btn-container contact-seller-chat <%=isChatBtnOnRight ? "btn--rearrange" : "" %>">当我建立在释放模式。我收到以下错误:
Child.aspx(108):错误BC30198:‘)预期。D:\JenkinsUtilities\Feature_Testing\codecheckout\Organisation\Organisation.UI.csproj
在Parent.aspx中没有显示错误。我希望访问包含的aspx页面(Child.aspx)中相同的受保护变量。
发布于 2018-07-17 17:58:59
我严重怀疑您的错误是由于您的aspx页面的声明。error BC30198通常是由于任何使用的函数中的语法错误而出现的。仔细检查您的aspx页面调用.cs代码的位置。如果您正在使用任何内置函数,请在目标框架中对函数的语法进行双重检查。在较新版本的.net框架中,有些函数不推荐语法。
https://stackoverflow.com/questions/51386101
复制相似问题