Home  >  Article  >  Web Front-end  >  Data binding methods such as Eval(), XPath(), and Bind() can only be used in the context of a data-bound control_html/css_WEB-ITnose

Data binding methods such as Eval(), XPath(), and Bind() can only be used in the context of a data-bound control_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:58:151954browse

The background code can be displayed normally when writing Eval("cbr") == "" ? "Distribution" to
because the status of the logged-in person needs to be judged. To add a judgment, replace it with
<%= Session["yhlx"].ToString() == "KZ" ? Eval("cbr") == "" ? "Distribution" : "" : ""%>
, the page error is as follows,
Data binding methods such as Eval(), XPath() and Bind() can only be used in data binding used in the context of the control.
Has anyone encountered this problem?


Reply to discussion (solution)

Problem solution

">Added this

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn