简体   繁体   中英

ASP.NET BC30198 error in included aspx page

In my aspx page say Parent.aspx , we access a protected variable defined in code behind. eg: Parent.aspx

 <div id="rp_chat_btn_container" class="grid-4 chat-btn-container <%=isChatBtnOnRight ? "btn--rearrange" : "" %>">

This works absolutely fine. Now in the aspx page, I include another aspx page say child.aspx . In the I access the same variable.

Parent.aspx

 <!-- #include file=/used/Child.aspx -->

Child.aspx

  <div class="grid-4 chat-btn-container contact-seller-chat  <%=isChatBtnOnRight ? "btn--rearrange" : "" %>">

When I am building in Release Mode. I am getting following error:

Child.aspx(108): error BC30198: ')' expected. [D:\\JenkinsUtilities\\Feature_Testing\\codecheckout\\Organisation\\Organisation.UI.csproj]

There are no error showing in Parent.aspx . I want to access the same protected variable in the included aspx page(Child.aspx)

I seriously doubt that your error is due to your aspx page's declaration. error BC30198 usually comes because of syntax error in any used function. Check carefully from where your aspx page is calling .cs code. If you are using any inbuilt function, double check syntax of function with your target framework. Some functions have deprecated syntax in newer version of .net framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM