在我的aspx页面上说
Parent.aspx
,我们访问
protected
例如:Parent.aspx
<div id="rp_chat_btn_container" class="grid-4 chat-btn-container <%=isChatBtnOnRight ? "btn--rearrange" : "" %>">
这工作非常好。现在在aspx页面中,我包括另一个aspx页面
child.aspx
. 在I中访问相同的变量。
父.aspx
<!-- #include file=/used/Child.aspx -->
子.aspx
<div class="grid-4 chat-btn-container contact-seller-chat <%=isChatBtnOnRight ? "btn--rearrange" : "" %>">
当我在释放模式下构建时。我得到以下错误:
显示没有错误
. 我想访问包含的aspx页(Child.aspx)中的同一受保护变量